Redirection is your friend....
When you run any Linux command, you can redirect any output to a file. You will want to read up on this, because some options are not intuitively obvious.
Read a file named "stuff" and put the output in a new file named "mystuff":
cat stuff >mystuff
when you run certain commands you can have normal output + error messages. Te be sure that it ALL goes to a file, you need to redirect the "stderr" stream also--like so
cat stuff >mystuff 2>myerrors
There are also ways to get stdout and stderr to go to one file
The book I recommend for this kind of thing is the Bash Guide for Beginners, by Machtelt Garrels. It is at tldp.org
Last edited by pixellany; 01-19-2007 at 01:19 PM.