Code Snippets in Unix Shell Script