Date: Thu, 21 Aug 2008 09:17:43 -0400 From: Steve Bertrand <steve@ibctech.ca> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: Joseph Olatt <joji@eskimo.com>, freebsd-questions@freebsd.org Subject: Re: sed/awk, instead of Perl Message-ID: <48AD6AF7.7070209@ibctech.ca> In-Reply-To: <20080821151330.E7822@wojtek.tensor.gdynia.pl> References: <48AD63B7.8090107@ibctech.ca> <20080821055429.A26910@eskimo.com> <20080821151330.E7822@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AD6AF7.7070209>