Re: Shell scripting kungfu

2008-01-20 Thread Michaël Grünewald
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 http://lists.freebsd.org/mailman/listinfo/freeb

Re: Shell scripting kungfu

2008-01-18 Thread ann kok
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 > l

Re: Shell scripting kungfu

2008-01-18 Thread Randy Pratt
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

Re: Shell scripting kungfu

2008-01-18 Thread fbsdq
> 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

Re: Shell scripting kungfu

2008-01-18 Thread Vince Hoffman
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 li

Shell scripting kungfu

2008-01-18 Thread Paul Schmehl
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 x.x.