Portal Home > Knowledgebase > Articles Database > How can I send the output of this to a file?


How can I send the output of this to a file?




Posted by robotwink, 09-03-2009, 07:13 PM
Hello, How can I send the output of the following to a file: Please help. Thanks.

Posted by bear, 09-03-2009, 07:31 PM
cat /var/log/messages*|grep cgi > file.txt If the file already exists, use >>

Posted by jtg1993, 09-03-2009, 07:32 PM
cat /var/log/messages*|grep cgi > /path/to/file.txt



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to backup data? (Views: 681)
strange errors (Views: 694)
Zend or Ioncube (Views: 676)