2010-09-13 52 views

回答

1

如何:

cd DIRECTORY/.. 
find DIRECTORY -type f '(' -name '*.ext1' -or -name '*.ext2' ')' | xargs zip OUTPUT 

(第一CHDIR到所需目錄的父,使ZIP文件的路徑將包括目錄,但沒有父母在其路徑名)。

+0

謝謝,很好! – 2010-09-13 21:09:44

相關問題