taring filenames>100 char?

Gary Weimer 253-7796 weimer at garden.ssd.kodak.com
Wed Apr 10 04:27:44 AEST 1991


In article <1991Apr9.075208.25211 at uniwa.uwa.oz>, chris at ec.uwa.oz.au
(Christoph Uloth - operator) writes:
|> how can I tar a directory structure where the total pathname/filename
|> is larger than 100 characters

Two things that come to mind right away. Let's say you want to tar
~/<very_long_path>/*.dat

1) % cd ~/<very_long_path>
   % tar c *.dat
or
   % cd ~/<very_long_path>/..
   % tar c ./*.dat

2) create a link to shorten the path.
   % cd ~
   % ln -s <very_long_path> short-cut
   % tar c short-cut/*.dat

The -C option might also be what you are looking for. Since you don't
give any details, it's hard to say what might be best for your case.

weimer at ssd.kodak.com ( Gary Weimer )



More information about the Comp.unix.wizards mailing list