example code for shell redirection and pipelines.