[sclug] strip paths from file when tarring?

Darren Davison darren at davisononline.org
Sat Mar 5 20:36:06 UTC 2005

I'm trying to generate a tbz2 file from a couple of directories and a
log file..

tar cjf mytar.tbz2 foo/ bar/ long/path/to/logfile.log

however, I want logfile.log to appear in the root of the archive - can I
optionally strip "long/path/to/" from this one file while generating the

Many thanks,
Darren Davison
Public Key: #DD356B0D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20050305/12102226/attachment.bin

More information about the Sclug mailing list