Re: Large number of files in single directory

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

 



I think you want to use the "-A" switch to append (concatenate) files to
an archive.  Look at "man tar".  I'm not sure if this works with
compressed (gzip'd) archives though, so you might need to compress after
the tar is done.

-Steve

On Wed, 2005-05-25 at 11:51 -0700, Chris wrote:
> ----- Original Message ----- 
> From: "Stephen Carville" <stephen@xxxxxxxxxxxxxx>
> Sent: Wednesday, May 25, 2005 10:50 AM
> Subject: Re: Large number of files in single directory
> 
> > Try:
> >
> > $ find <directory> -exec tar -avf foo.tar {} \;
> 
> Didn't work.  The -a is an invalid option on Fedora, it seems.  I replaced 
> it with -cz to create and compress the tar file, but even with that, it goes 
> through the list of files (lists them one per line) as if it was actually 
> taring them, but the resulting .tar file only has the very LAST file that 
> tar listed - and nothing else in it.  :-?
> 
> Chris 
> 
> 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux