Read Learning The Bash Shell: Unix Shell Programming (In A Nutshell (O\'reilly))