逃離

\ escapes 保留以下字元值,除非後面的字元是換行符,在這種情況下刪除了\和換行符。

轉義特殊字元:

$ echo \"quoted text\"
"quoted text"
$ echo \`\`quoted text\'\'
``quoted text''
$ echo 'single-quotes inside of a '\''single-quoted'\'' string'
single-quotes inside of a 'single-quoted' string
$ printf format\ with\ %s spaces
format with spaces
$ printf %s\\n \$var
$var

刪除換行符:

$ echo multi\
> -line
multi-line