Pipe Output of ls -lR into a tar archive
Ow Mun Heng
Ow.Mun.Heng at wdc.com
Fri Jun 18 18:48:54 UTC 2004
On Fri, 2004-06-18 at 11:36, Alexander Dalloz wrote:
> Am Fr, den 18.06.2004 schrieb Ow Mun Heng um 20:04:
>
> > I just want to create a tar archive from a directory file listing.
> >
> > something like
> >
> > ls -laR ~/the/dir/to/list | tar -cvf - /tmp/tarred-dir-list.tar.gz
> >
> > I can't seem to find the correct syntax
>
> http://www.redhat.com/archives/fedora-list/2004-April/msg02382.html
That didn't work. End up actually tarring up the folder and not the listing somehow
find ~/Data/Tunes/ -type d -print0 | xargs -0 tar cvf /tmp/tunes1.zip -
More information about the fedora-list
mailing list