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 catfile1 file2 file3>newfile
To append one file to another catfile>>logfile
To send a file listing to the l | lp
printer