Is there a way to tar-up a directory containing sub-directories so that the resulting tar file just contains the file names from the sub-directories and doersn't include the name of the sub-dirs?
e.g.:
> /test/one/file1.txt
> /test/two/file2.txt
and run something like ... tar -cvf final.tar *
where the final.tar contains:
file1.txt
file2.txt
instead of :
./one/file1.txt
./two/file2.txt
e.g.:
> /test/one/file1.txt
> /test/two/file2.txt
and run something like ... tar -cvf final.tar *
where the final.tar contains:
file1.txt
file2.txt
instead of :
./one/file1.txt
./two/file2.txt