1
2
3
4
5
6
7
8
9
10
11
12
| #!/bin/bash
for dir in `ls . | tr " " "?" `
do
new_dir=(`echo $dir | tr "?" " "`)
if [ -d """$new_dir""" ]
then
echo $new_dir
cd """$new_dir"""
ls | awk -F "【瑞客论坛 www.ruike1.com】" '{print "mv \""$0"\" \""$1""$2"\""}' |bash
cd ..
fi
done
|