shell script snippets