<- Commands and Arguments | Parameters ->


Special characters

A group of characters have been exempted, that when we use them, they are evaluated by Bash to have a non-literal meaning. Instead these characters carry out a special instruction, or have an alternate meaning; they are called "special characters", or "meta-characters".

These are the characters and their meaning:

Some examples:

$ echo "I am $LOGNAME"
I am lhunath
$ echo 'I am $LOGNAME'
I am $LOGNAME
$ # boo
$ echo An open\ \ \ space
An open   space
$ echo "My computer is $(hostname)"
My computer is Lyndir
$ echo boo > file
$ echo $(( 5 + 5 ))
10
$ (( 5 > 0 )) && echo "Five is bigger than zero."
Five is bigger than zero.




<- Commands and Arguments | Parameters ->