Shell Script


 * bash reference
 * syslog setting in OS X
 * deleting specific line with sed
 * removing BOM
 * sed way: sed -i '1 s/^\xef\xbb\xbf//' *.txt
 * how to implement watch command with shell script
 * use sleep

basename

 * example


 * extension, filename, basename with bash
 * ${var##*/} : basename
 * ${var%.*} : filename
 * how to use # in bash

Comment

 * use "#" on beginning of line for single line comment
 * Multi line comment
 * example


 * Also can be used to embed other script
 * How to embed python script

If

 * tutorial
 * Don't forget the whitespace between expression and semicolon.
 * Or, And
 * use "-a" or "-o" option in test