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
|
Add to Favourites Print this Article
Also Read