by js <joke_smit@[EMAIL PROTECTED]
>
Jan 28, 2008 at 09:29 PM
mooshak@[EMAIL PROTECTED]
schreef:
> Hi All,
>
> My apologies if this has been covered in the past.
>
> I am trying to parse lines in a file. I would like to catpure
> anything after $8 as one variable. For example, in the line below, I
> would like "insert into schema.tab values" to be $8. By default, awk
> parses the word 'insert' as $8.
>
> Is there an easy way to do it?
>
>
> 0x078000007E1B3840 14 41382 1 1 2
> 2 insert into schema.tab values
>
>
> Thanks
>
> Moosh
how about:
for (i=9;i<=NF;i++) $8=$8" "$i
then
print $8
yields:
insert into schema.tab values