Shell文件批量重命名脚本
Opened this issue · 0 comments
colinox commented
Shell文件批量重命名脚本
#!/bin/bash
# 处理空格换行问题
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for file in `ls | grep .mp4`
do
# echo $file
newfile=`echo $file | sed 's/\[www.17zixueba.com\]//g'`
# echo $newfile
mv $file $newfile
done
IFS=$SAVEIFS