What are the special dollar sign shell variables?

前端 未结 4 908
北海茫月
北海茫月 2020-11-22 00:44

In Bash, there appear to be several variables which hold special, consistently-meaning values. For instance,

./myprogram &; echo $!

wil

4条回答
  •  不知归路
    2020-11-22 01:34

    • $_ last argument of last command
    • $# number of arguments passed to current script
    • $* / $@ list of arguments passed to script as string / delimited list

    off the top of my head. Google for bash special variables.

提交回复
热议问题