From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 19 Nov 2009 11:32:13 +0100 Message-ID: <138575260911190232t45cee5f6va23959c16fddd43a@mail.gmail.com> From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Q: awk omit cols Topicbox-Message-UUID: 9d7edf80-ead5-11e9-9d60-3106f5b1d025 I think awk '{$1="";print}' should do what you want, provided that you don't care about leading spaces. 2009/11/19 Peter A. Cejchan : > On Thu, Nov 19, 2009 at 9:52 AM, Russ Cox wrote: >> awk '{print substr($0, 1+length($1)+1)}' >> > > Big thank you, Russ, however, wouldn't it be smarter if we had some > kind of 'not' operator here...? Sometimes, especially when you write > the script by hand it is easier to delete few fields than to > explicitly write out all those remaining... IMHO... > > ++pac > > -- Hugo