Dean
in memoriam
I've go a reasonably long file, and 99% of it are lines like these:
127.0.0.1 - - [01/Jul/2011:02:04:29 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:04:30 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status HTTP/1.0" 200 28577
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:02 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:03 -0700] "GET / HTTP/1.0" 200 111
127.0.0.1 - - [01/Jul/2011:02:05:53 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:54 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:59 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:06:56 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:13 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
Any ideas how I could get rid of all lines that start with 127.0.0.1 ?
I'm sure there is some type of grep command, but I've no idea how to go about that. I cannot seem to do that with notepad++ on my pc locally either. All ideas welcome
(fingers tired)
127.0.0.1 - - [01/Jul/2011:02:04:29 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:04:30 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status HTTP/1.0" 200 28577
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:01 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:02 -0700] "GET /whm-server-status?auto HTTP/1.1" 200 446
127.0.0.1 - - [01/Jul/2011:02:05:03 -0700] "GET / HTTP/1.0" 200 111
127.0.0.1 - - [01/Jul/2011:02:05:53 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:54 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:05:59 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:06:56 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:13 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
127.0.0.1 - - [01/Jul/2011:02:07:51 -0700] "OPTIONS * HTTP/1.0" 200 -
Any ideas how I could get rid of all lines that start with 127.0.0.1 ?
I'm sure there is some type of grep command, but I've no idea how to go about that. I cannot seem to do that with notepad++ on my pc locally either. All ideas welcome
(fingers tired)