uote:
Code:
find path -type f '*.txt' | pax -w > txtarchive.tar Many tar implementations have an option that allows them to read a file list from a file, allowing for find's output to be redirected and then read. In my opinion, not a very elegant solution. If I recall correctly, BSD tar uses -I and GNU tar uses -T . Like ps , tar is a ubiquitous utility whose usage, for anything non-trivial, varies a great deal between platforms of different lineage. Regards, Alister |
Code:
find path -name '*.txt' -type f | pax -w > txtarchive.tar
Code:
find path -name '*.txt' -type f | cpio -ov -H ustar -F txtarchive.tar