标签:
#/bin/sh IFS=$(echo -en "\n\b") function myrename() { for filename in $(ls $1 -1) do if [ -f $filename ]; then tmp=$(echo $filename | awk ‘{if(NF==2)print $1"-V1.0.doc"}‘) mv $filename $tmp fi done } function getfile() { for file in $(ls $1 -1) do if [ -d $1"/"$file ]; then getfile $1"/"$file; else myrename $1"/"$file fi done } getfile aa
标签:
原文地址:http://www.cnblogs.com/cnpirate/p/4947674.html