>> listen <010:atm1.7530>
>> listen <010:atm120.7080>
[...]
>> How I can extract of the second column since ':' to '.'
>> example:
>> <010:atm1.7530> atm1
>> <010:atm120.7080> atm120
>
>cat datafilename | gawk -F: '{ print $2 }' | gawk -F. '{ print $1 }'
> outfile
>
or
$ cut -f 2 -d : datafile|cut -f 1 -d . > outfile
Probably uses fewer cpu cycles if the datafile is big.
MB
- [newbie] script help Robert Sheskin
- [newbie] script help Hip�lito L�pez
- Re: [newbie] script help Civileme
- Re: [newbie] script help Michael R. Batchelor
- Re: [newbie] script help Mark Weaver
- Re: [newbie] script help MG
- Re: [newbie] script help Chuck Burns
- Re: [newbie] script help MG
- [newbie] uninstalling Mandrake Steve Mendizabal
- Re: [newbie] uninstalling M... Pilag�
- SV: [newbie] uninstalli... Anders Lind
- Re: SV: [newbie] uninst... Michael Adams
- Re: [newbie] uninstalling M... Mark Weaver
- Re: [newbie] uninstalli... Carroll Grigsby
