"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
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
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.