Date: Thu, 21 Aug 2008 15:13:39 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Joseph Olatt <joji@eskimo.com> Cc: Steve Bertrand <steve@ibctech.ca>, freebsd-questions@freebsd.org Subject: Re: sed/awk, instead of Perl Message-ID: <20080821151330.E7822@wojtek.tensor.gdynia.pl> In-Reply-To: <20080821055429.A26910@eskimo.com> References: <48AD63B7.8090107@ibctech.ca> <20080821055429.A26910@eskimo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Try the following: > > > cat t.txt | awk -F\t '{split($1, arr, "."); printf("%s_%s@%s\n", arr[ > 1], arr[2], $2);}' > and third
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080821151330.E7822>