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 . . .
>
> I see what you have here.  It is a listing that has been nicely
> arranged for people to look at, but is not very nice for a computer
> program to parse.  I do have a program that could be used to put this
> back into a better form, but you can do the same thing with the
> original files.  The command line that will produce a listing that
> shows the relevant information without pretty-printing is the
> following:
>
>   $  tar cf - . | tar tvf - | gawk '{$1=$2=$5=""; print}'  > /tmp/file.lst
>
> Explanation:
> The first "tar" command creates an annotated image file of everything
> in the directory and subdirectories.
> The second "tar" command reads the annotation from the image file.
> The "gawk" command keeps the relevant information, namely file size,
> date, and directory path and file name, discarding file attributes,
> owner, and time-of-day.
>
--- snip ---
>
>     carl
> --
>     carl lowenstein         marine physical lab     u.c. san diego
>                                                  [EMAIL PROTECTED]
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to