15 lines
159 B
Bash
Executable File
15 lines
159 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -lt 1 ];then
|
|
echo "Usage: $0 filename"
|
|
fi
|
|
|
|
if [ ! -e $1 ];then
|
|
exit 0
|
|
fi
|
|
|
|
newname=`echo $1 | sed -e "s/Tdr/Pb/g"`
|
|
mv $1 $newname
|
|
|
|
|