标签:ssi 文件 批量 image -- images log gre jpeg
#!/bin/sh filelist=$(ls) for file in $filelist do if [ -d $file ] then du -h $file /usr/local/bin/jpegoptim --strip-all --all-progressive -o -f --max=80 $file/images/*.jpg du -h $file #tar -czvf $file.tar.gz $file fi done
标签:ssi 文件 批量 image -- images log gre jpeg
原文地址:http://www.cnblogs.com/lsl8966/p/6005676.html