PDA

View Full Version : OT tar question



Mapfiend
01-18-2004, 05:31 PM
Anyone know how I can prevent tar from including the original path names when archiving a bunch of files? I have been through the man page backwards and forwards and didn't find anything about it.
I even tried -C to force tar to switch to the folder before hand, but it still includes the path names.

Thanks,

ksmith
01-18-2004, 11:21 PM
something like this?

(cd /path/to/files && tar cvf tarfile.tar ./ *)

Mapfiend
01-18-2004, 11:42 PM
Thanks, I'll give it a try.