bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Parsing the output of `tar tvf'


From: Otto Maddox
Subject: [Bug-tar] Parsing the output of `tar tvf'
Date: Sat, 07 Jan 2006 18:48:09 +0000

I'm trying to write a wrapper around GNU Tar which determines the
stored permissions, owner, group and name of each file in the archive.

I've written a clunky Bash script which parses the output of
`tar tvf' using read, awk, sed, etc.  There are all sorts of problems
involving filenames with spaces in them, etc.

Does anyone know of any tools, or have any hints, for listing the
contents of the archive in a more easily parsable way?  I've read
about file formats in chapter 8 of the Tar manual, but I don't really
want to write a C program, if I can avoid it.

Any suggestions would be welcome.

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again





reply via email to

[Prev in Thread] Current Thread [Next in Thread]