Back to CFM home             Brown University

Redirecting standard input

To redirect the standard input for a command use the < (less than) character followed by the name of the input file. For example:

   mail tony < memo

This redirects the standard input to the mail command so that it comes from the file memo. The effect of this is to mail the contents of this file to the user tony.

[Home] [Search] [Index]