bug-gnu-utils
[Top][All Lists]
Advanced

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

gnu tar problem


From: John Landstreet
Subject: gnu tar problem
Date: Wed, 23 Jan 2002 15:28:04 -0500 (EST)

Hello

I am running tar (GNU tar) 1.13 under Linux Slackware 8.0 on a HP XE3
laptop and on a desktop PC. I have been trying to create a (disk) tar file
of only the newest files in a directory. When I make a list of recent
files (with find) and then ask tar to create a tarfile of only these files
with the "-T list" or "--files-from=list" options, exactly as specified in
the tar info files, tar ignores the option and creates a file with
everything beneath ./. Thus for example when I follow your example,
     $ find . -mtime -10 -print > new-files
     $ tar -c -v -z -T new-files -f new.tgz
tar first creates a tar file with everything in the directory, and then
adds on the stuff in my "new-files" list. 

Can you give me any suggestions as to how to avoid this behaviour and get
only the small tar file I want?

Thanks very much for your help.

Your, John Landstreet




                        Prof. John D. Landstreet 
         Dept. of Physics & Astronomy, Univ. of Western Ontario
  (519) 661-2111 ext 86707 (me), 661-3183 (dept. office), 661-2033 (fax)
               WWW: http://phobos.astro.uwo.ca/~jlandstr





reply via email to

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