使用find搜索特定文件,然后通过管道一个一个的添加到tar包中。例如,将test文件下下的所有txt文件添加到test.tgz中findtest-name\*.txt|xargstarczvftest.tgz