2013年6月9日 星期日

[Tar][find] Find specific file and tar all of the file


[Tar][find] Find specific file and tar all of the file



find *.jpg & *.txt

# find . -regex ".*\.jpg\|.*\.txt"



find *.jpg & *.txt and tar all of it

# find. -regex ".*\.jpg\|.*\.txt" | xargs tar -rvf test.tgz



Reference :



Related Posts:

0 意見:

張貼留言