1 #!/bin/bash
2 # rfe.sh
3
4 # rfe old_extension new_extension
5
6 #using rfe gif jpg
7
8
9 E_BADARGS=65
10
11 case $# in
12 0|1)
13 echo "Usage:`basename $0` old_file_suffix new_file_suffix"
14 exit $E_BADARGS
15 ;;
16 esac
17
18
19 for filename in *.$1
20
21 do
mv $filename ./${filename%$1}$2
23
24 done
25
26
27 exit 0
阅读(2487) | 评论(0) | 转发(1) |