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

Re: Pipe Output of ls -lR into a tar archive



On Fri, Jun 18, 2004 at 11:04:36AM -0700, Ow Mun Heng wrote:
> I need help,
> 
> 	EIther google isn't finding the stuffs or my search terms are too
> muddled.
> 
> 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

If all you want is a compressed text file with a recursive descent
listing of a given directory, why bother with tar? Try this:

ls -lR dir | gzip > lslR.gz

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: pgp00348.pgp
Description: PGP signature


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