Andrew Ganim on 10 Oct 2008 14:14:33 -0700 |
Try something like this maybe: egrep '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}\|{2}' file.csv It works for me on an admittedly very simple test file. ----- Original Message ---- From: Michael Lazin <microlaser@gmail.com> To: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org> Sent: Friday, October 10, 2008 4:53:51 PM Subject: Re: [PLUG] egrep help What I am doing is picking up the IP addresses, my problem seems to be finding a "||" immediately following the IP address. What I tried seems to be picking up a | followed by a string and another | followed by a string. What I am looking for is [IP address][||]
finding the 2 pipes in a row is what I am having trouble with. Thanks for the info so far, this is helpful however. On Fri, Oct 10, 2008 at 4:46 PM, <skydiver38@comcast.net> wrote:
-- Michael Lazin To gar auto estin noein te kai enai ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|