节选自:https://www.cnblogs.com/cornerxin/p/9105612.html
[root@bogon ~]# cat modify_suffix.sh
#!/bin/bash
dst_path=$1
for file in `ls $dst_path`
do
if [ -d $1/$file ]
then echo `$0 $1/$file`
elif [ -f $1/$file ]
then mv $1/$file $1/${file}._mod
else
echo $1/${file} is unknow file type
fi
done;
./modify_suffix.sh ./f
将 ./f 下的所有文件文件名添加了.mod