ann kok [EMAIL PROTECTED] writes:
how about this
cat file | sed 's/\/32//g' |tr -s , \n
Hi, `cat' is an overused tool :)
--
Best regards,
Michaël
___
freebsd-questions@freebsd.org mailing list
On Fri, 18 Jan 2008 11:09:14 -0600
Paul Schmehl [EMAIL PROTECTED] wrote:
I need to do the following:
Take a list of various strings, one of which is a quoted IP address, and
extract the IPs. (Done that.)
Then take the list of IPs and convert them to a list of IPs with masks on a
I need to do the following:
Take a list of various strings, one of which is a quoted IP address, and
extract the IPs. (Done that.)
Then take the list of IPs and convert them to a list of IPs with masks on a
single line.
IOW, I have converted the original list to this:
x.x.x.x
x.x.x.x
how about this
cat file | sed 's/\/32//g' |tr -s , \n
--- [EMAIL PROTECTED] wrote:
I need to do the following:
Take a list of various strings, one of which is a
quoted IP address, and
extract the IPs. (Done that.)
Then take the list of IPs and convert them to a
list of IPs with
Paul Schmehl wrote:
I need to do the following:
Take a list of various strings, one of which is a quoted IP address, and
extract the IPs. (Done that.)
Then take the list of IPs and convert them to a list of IPs with masks
on a single line.
IOW, I have converted the original list to
I need to do the following:
Take a list of various strings, one of which is a quoted IP address, and
extract the IPs. (Done that.)
Then take the list of IPs and convert them to a list of IPs with masks on
a
single line.
IOW, I have converted the original list to this:
x.x.x.x
x.x.x.x