sed/awk, instead of Perl

Steve Bertrand steve at ibctech.ca
Thu Aug 21 13:16:15 UTC 2008


Wojciech Puchar wrote:
>>
>> Try the following:
>>
>>
>> cat t.txt | awk -F\t '{split($1, arr, "."); printf("%s_%s@%s\n", arr[
>> 1], arr[2], $2);}'
>>
> and third

If you have nothing nice to say, or can't contribute or point out more 
efficient ways of doing things in a polite manner, then 'don't say nothin'.

Steve


More information about the freebsd-questions mailing list