The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-25-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,189
There are many ways to do this depending on the scripting language you are using; or if you are simply using a command line.

If you are simply using a command line, you can redirect to a file like this:

Code:
 command > output.txt
If you want to append to the same file, you can use:

Code:
 command >> output.txt
You can do this in a script so many, many ways; depending on your skill and tools; PERL, PHP, SED, AWK, etc etc.
Reply With Quote