wildcards
wildcards are used in unix and other operating systems when searching for files or directory’s. some of the most common wildcards are the * and ?. The asterisk is used to represent any number of unknown characters. For example if you typed in file* you may receive a number of files beginning with file… file1.txt, file2.txt, fileboy.txt, fileoctopus.txt. Note that the .txt has nothing to do with it it is just a file name extension. The ? make on the other hand only represents one unknown character so if you typed in file? you will only receive file names such as file.txt, file1.txt, file2.txt but now files with more than one extra character after the name file.
shabang
A shabang is this: #! The shabang is used to read the following test on the first line after it to determine what interpreter the user would like to… use. Some example of interpreters (Taken directly from http://en.wikipedia.org/wiki/Shebang_(Unix):
The #!/bin/bash makes the script use the bash interpreter.
1 #!/bin/bash 2 # 3 #script 3 4 # 5 # 6 7 value=`bc <<< "$RANDOM"` 8 num=`bc <<< "$RANDOM"` 9 10 While [ $num -ne $RANDOM ] ; 11 do 12 13 echo -n "guess a value: " 14 echo "$num" 15 echo "Nope $num is not equal to $RANDOM" 16 17 done 18 19 20 echo "YAY!!!!! IT WORKED!" 21 22 23 exit 0