help with apache

Tim ignored_mailbox at yahoo.com.au
Thu May 24 23:44:00 UTC 2007


Tim:
>>>  grep -v "^#" httpd.conf | less -s

Scott Berry:
>> Time how would I actually output this command to a file?

stan:
> Instead of using the pipe symbol | to pipe it to less, use the
> redirection symbol > to redirect it to a file. 

The advantage of the "less -s" part is that it compacts multiple
concurrent blank lines into just single blank lines.  It's not needed,
but aids in reading, and there's probably other ways to do it, as well.

-- 
(This box runs FC5, my others run FC4 & FC6, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.




More information about the users mailing list