Bash Script Variables

Posted in one place for future reference. $* – All variables as a single string/word $@ – All variables but each is a separate string $# – The number of arguments given $0 – the name of the script $1-9 – Reference each argument by number $- – Flags passed to the script $! – …

%d bloggers like this: