[1]
find / -name "*.sh"|xargs tar -rf sh.tgz
[2]
find / -name "*.sh" -print > list
tar -T list -cvjf sh.tar.bz2
[3]
find . -name ‘*.sh‘ | xargs tar cvjf sh.tar.bz2
find . -name ‘*.sh‘ -print0 | xargs -0 tar cvjf sh.tar.bz2
参考:
http://brightconan.com/?p=47
时间: 2024-12-14 05:18:28