Everfighting
8/13/2019 - 6:14 AM

查找特定文件,并加以拷贝

#!usr/bin/bash

for file in $(cat ./to_copy_list.txt);
do find ./ -type f \( -iname 9060419022816256\*.pdf -o -iname 9060419022816256\*.png \
-o -iname 9060419022816256\*_5sent_add.txt  \
-o -iname 9060419022816256\*bch.csv \
-o -iname 9060419022816256\*bch_noshai.csv \
-o -iname 9060419022816256\*_content.csv \
-o -iname 9060419022816256\*_content_front_show.csv \
-o -iname 9060419022816256\*_data_frame_biaoming.csv \
-o -iname 9060419022816256\*_data_frame.csv \
-o -iname 9060419022816256\*_wordplus.xml \
-o -iname 9060419022816256\*_word.xml \
 \)|xargs -t -I {} cp {} to_copy_files/;tar -cvzf to_copy_files.tar.gz to_copy_files/*;done