February 8, 2018
Linux Shell系列教程之(二十) Shell 脚本中一些特殊符号:# ; ;; . , / \\ ‘string’| ! $ ${} $? $$ $* \”string\”* ** ? : ^ $# $@ `command`{} [] [[]] () (()) || && {xx,yy,zz,…}~ ~+ ~- & \\<...\\> + – %= == !=
在shell中常用的特殊符号罗列如下:
# ; ;; . , / \\ ‘string’| ! $ ${} $? $$ $*
\”string\”* ** ? : ^ $# $@ `command`{} [ () (())
|| && {xx,yy,zz,…}~ ~+ ~- & \\<…\\> + – %= == !=
# 井号 (comments)
这几乎是个满场都有的符号,除了先前已经提过的\”第一行\”
#!/bin/bash
井号也常出现在一行的开头,… Read More