#!/bin/bash
set -x
set -e
for temp_file in `ls -d index2018*`
do
echo $temp_file
tar -zcvf $temp_file.tar.gz $temp_file
done
#!/bin/bash
set -x
set -e
for temp_file in `ls -d index2018*`
do
echo $temp_file
tar -zcvf $temp_file.tar.gz $temp_file
done
本文标题:linux 按日期批量压缩文件
本文链接:https://www.haomeiwen.com/subject/imwdmttx.html
网友评论