Ugarit Ebla on 10 Oct 2008 13:42:01 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] egrep help


almost what you want

http://www.linuxforums.org/forum/linux-programming-scripting/104498-regular-expressions-match-ip-addresses.html#post512160

egrep '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}' data1

68.112.34.23
235.37.123.244

Michael Lazin wrote:
Hi, I'm trying to grep a CSV for an IP address followed by ||

I tried grep Developer *.csv | egrep \|*\.*\.*\.*\|\||head

but this is not working, it is picking up false positives, what I am looking for specifically is an IP address followed by || in the csv.  I am working on trying to teach myself regular expressions now but I am just in the beginning stages.  Any help would be appreciated. 

--
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
___________________________________________________________________________
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