mkdir log_B850 log_B800
for i in `ls log_files`
do
num=0
for j in 283 288 292 577 582 586 871 876 880
do
#if [[ $i =~ $j ]]
if [[ $i == *$j* ]]
then
num=`expr $num + 1`
else
num=`expr $num + 0`
fi
done
if [ $num == 0 ]
then
cp log_files/$i ./log_B850/;
else
cp log_files/$i ./log_B800/;
fi
echo $num
done
相关文章
- 01-06file_split.sh