Hi,

On Fri, 24 Mar 2006 14:34:22 +0100 (CET) Sascha Lucas
<[EMAIL PROTECTED]> wrote:

> I want the awk analogon for "cut -f2-", which prints fields #2 to #n.
> Is this possible?
> 
> awk '{print $2???}'

I'd do the following:

awk '{$1="";print $0}'

(awk recalculates $0 when $n is modified)
This still leaves you with one OFS starting the line (between $1 and
$2), you can get rid of this using

awk '{$1="";print substr($0,lenght(OFS))}'


-hwh
-- 
gentoo-user@gentoo.org mailing list

Reply via email to