Doug Nelson wrote:

> How does one "clean up" a log file to remove unwanted lines?
> 
> We use Apache server.
> 
> I want to remove a whole bunch of lines from certain clients used for 
> testing purposes in site development so as to reduce log file size and run 
> time, yet capture some of the older info still in the file. I believe grep 
> is the tool, but I am not overly familiar with its use.

grep -v 192.186.0 logfile > logfile.cleaned

See 'man grep' for details.

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to