code snippets for shell