Date created: 08/02/18 09:02:02. Last modified: 03/10/21 09:32:49

Bash Notes

Bash style guides:


Escaping Strings:

$ # This string 'has single' "and double" quotes and a $
$ !:q:p
'# This string '\''has single'\'' "and double" quotes and a $'

$ printf '%q' 'This string has do"uble quotes"'
This\ strin\"g\ has\ double\ quotes\"


Syntax Checking:

bash -n

Previous page: Syscalls On Linux
Next page: Backup Github