Monthly Archives: May 2010

Alonzo Fretwell Articles in May, 2010, Page 3

Redirection To Multiple Places

The tee command will redirect standard output to multiple locations. tee is named after the T-shaped plumbing connections. When one uses tee it redirects its input to both the standard output and the file name you give as an argument. … Continue reading

Posted in BSD, Bash, GNU/Linux, UNIX | Tagged , , , , | Leave a comment

Redirection From One Command To Another

Piping allows one to chain the standard output of one command to the standard input of another. This is done by specifying the two commands in order separated by a (|) sometimes called a “pipe”. Compound commands constructed this way … Continue reading

Posted in BSD, Bash, GNU/Linux, UNIX | Tagged , , , , | Leave a comment

Redirecting Errors To A File

Redirect the standard error stream (stderr) using the 2> operator. Follow a command with this operator and the name of a file the error stream should be written to. Example… Redirect stderr fromĀ apropos shell bash to the command.error file… $ … Continue reading

Posted in BSD, Bash, GNU/Linux, UNIX | Tagged , , , , | Leave a comment