特殊字元

在雙引號字串中使用時,轉義字元(反引號`)會重複出現一個特殊字元。

`0    #Null
`a    #Alert/Beep
`b    #Backspace
`f    #Form feed (used for printer output)
`n    #New line
`r    #Carriage return
`t    #Horizontal tab
`v    #Vertical tab (used for printer output)

例:

> "This`tuses`ttab`r`nThis is on a second line"
This    uses    tab
This is on a second line

你還可以轉義具有特殊含義的特殊字元:

`#    #Comment-operator
`$    #Variable operator
``    #Escape character
`'    #Single quote
`"    #Double quote