next up previous
Next: Standard Output Up: Standart Input Previous: Standart Input

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 bill $<$ 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 bill.



Instructional Support Group 2008-08-05