-1
1
I have this input file in ubuntu:
146.14.142.96.17747 197.102.40.184.13748:
146.14.142.96.17747 197.102.40.184.13749:
146.14.142.96.17747 197.102.40.184.13750:
146.114.142.96.17747 197.102.40.184.13751:
46.14.142.96.17747 197.102.40.184.13752:
and I'd like to have the output like this using shell scripting:
separate two IPs without ports number I mean delete ports
146.14.142.96 197.102.40.184
146.14.142.96 197.102.40.184
146.14.142.96 197.102.40.184
146.114.142.96 197.102.40.184
46.14.142.96 197.102.40.184
In linux, use "sed" tool with a grep.
– Diogo – 2013-04-25T16:55:06.010@Diogo tnx. i'm not expert in regular expression – Arash – 2013-04-25T16:56:42.833