On 11/14/05, Scott McClelland <[EMAIL PROTECTED]> wrote:
> Interesting use of gawk. I had alway used
> ... | awk '{print $1 $2}'
> to print the fields I want, rather than blank out what I don't want.
> Also, gawk works in my installation of cygwin, but awk doesn't.
>
> > . . . many lines snipped . . .
> >
> >
> > $ tar cf - . | tar tvf - | gawk '{$1=$2=$5=""; print}' > /tmp/file.lst
> >
The hidden secret to this use of gawk is that it does not disturb any
spaces that might be present in $6, the field that contains the file
name.
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie
>
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie