Re: [9fans] Q: awk omit cols

2009-11-19 Thread Peter A. Cejchan
> awk '{$1="";print}' > should do what you want, provided that you don't care about leading spaces. really, it works, I have still much to learn, thank you, Peter, aka ++pac

Re: [9fans] Q: awk omit cols

2009-11-19 Thread hugo rivera
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 ha

Re: [9fans] Q: awk omit cols

2009-11-19 Thread 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 expli

Re: [9fans] Q: awk omit cols

2009-11-19 Thread Russ Cox
awk '{print substr($0, 1+length($1)+1)}'