john lambert
asked on
Regex to filter only IP's?
How to filter this IP only?
89.35.24.74 7 msmta9.newcombo.net
89.35.24.83 8 msmta18.newcombo.net
12.35.24.83 8 msjohn123
100.200.30.20 rapasins
Output:
89.35.24.7
89.35.24.83
12.35.24.83
100.200.30.20
89.35.24.74 7 msmta9.newcombo.net
89.35.24.83 8 msmta18.newcombo.net
12.35.24.83 8 msjohn123
100.200.30.20 rapasins
Output:
89.35.24.7
89.35.24.83
12.35.24.83
100.200.30.20
you don't need an ereg if you just want the first column
in shell scripting you can do this
while read ip junk ; do echo $ip ; done <INPUT_FILE >OUTPUT_FILE
what is tyour environment ? unix shell ? windows shell ? perl ? asp ?
in shell scripting you can do this
while read ip junk ; do echo $ip ; done <INPUT_FILE >OUTPUT_FILE
what is tyour environment ? unix shell ? windows shell ? perl ? asp ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you!!!ur the best!!
pls try
Open in new window
Regards