Linux Today: Linux News On Internet Time.

Linuxlookup.com Tip Of The Week: bash Redirection

Aug 18, 2001, 20:35 (2 Talkback[s])
(Other stories by Randy)
"Shell redirection - sending the output of a command to a file or reading the input from a file - is commonly used and supported by any shell you might use. But bash offers some redirection tricks above and beyond what you might seen in the C shell.

The simplest forms of redirection are available in all shells. They look like this:

% wc totw* > totw_count # wc output goes to file totw_count

% mail randy < mailfile # send randy the contents of mailfile

Complete Story

Related Stories: