On 7/11/06, Ken Loomis said:

> I need delete all lines in an Apache log file that do NOT contain the 
> following:
> 
> "GET /nethap/newsletter/admin/login.php HTTP/1.1" 200 431
> 
> The complete line looks like this, and I need to leave the line complete:
> 
> 68.6.187.115 - - [17/Mar/2006:00:39:48 -0600] "GET 
> /nethap/newsletter/admin/login.php HTTP/1.1" 200 431 "-" "Mozilla/4.0 
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"

1. Open the log file

2. Select the "Text->Process Lines Containing" menu item

3. Paste the following:
   
    "GET /nethap/newsletter/admin/login.php HTTP/1.1" 200 431
   
   ... into the field labeled "Find Lines Containing"

4. Check "Delete Matched Lines". Uncheck "Use Grep" if it has a check.
   The rest of the checkboxes are optional.

5. Click the Process button.

All done.

Seth


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to