Gentoo Archives: gentoo-user

From: Sascha Lucas <sascha.lucas@×××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: awk scripting
Date: Fri, 24 Mar 2006 15:36:35
Message-Id: Pine.LNX.4.64.0603241612110.3438@tragbb.ehf.hav-fghggtneg.qr
In Reply to: Re: [gentoo-user] OT: awk scripting by Hans-Werner Hilse
1 On Fri, 24 Mar 2006, Hans-Werner Hilse wrote:
2 > awk '{$1="";print $0}'
3 >
4 > (awk recalculates $0 when $n is modified)
5 > This still leaves you with one OFS starting the line (between $1 and
6 > $2), you can get rid of this using
7 >
8 > awk '{$1="";print substr($0,lenght(OFS))}'
9
10 thanks. the function lenght seems not defined. but substr($0,2) works.
11
12 Sascha.
13
14 --
15 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT: awk scripting Hans-Werner Hilse <hilse@×××.de>