Operating System Tutorial
Chapter 6, Commands revisited: pipes and redirection

Summary

Summary

 To put the output of a command      command_line > filename 
 into a file
 To use a file as input to a         command_line < filename 
 command
 To join files together              cat file1 file2 file3 > newfile 
 To append one file to another       cat file >> logfile 
 To send a file listing to the       l | lp 
 printer
 ---------------------------------------------------------------------
 For more information about          See
 ---------------------------------------------------------------------
 All the topics covered in this      Chapter  3, ``Working with files
 chapter                             and directories'' 
                                     csh(C) ksh(C) and sh(C)