Tar select files in a directory tree
find . -name 'test.*' | tar czvf test.tar.gz -T - find . -name test.\* -print0 | xargs -0 tar czvf test.tar.gz find . -name "test.*" -exec tar -rvf test.tar '{}' \; # find . -name "test.*" -exec tar -cvf test.tar '{}' \; + # not tested find . -name "test.*" | cpio -o -H ustar | gzip -c > test.tar.gz
Comments
Comments powered by Disqus