> tar --create --file=output.tar \
>    -C /var/modules . -C /usr/local/modules .

Thank you very much, this makes the trick! :) I knew the -C option, but I didn't know that it may be used many times at once with different directories like in your example.

Regarding --strip-components and --strip-path, I can't see these in 'man tar', so perhaps the man page would need an update (a suggestion for developers :).

I searched for 'strip' in man and I found only '-P'.
I'm using tar 1.16.1.


Thank you

Tomas M
slax.org






Reply via email to