>> 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


Reply via email to