echo "We are finding '$filename' under the folder '$path'"
count=1
for i in `find $path -iname "*$filename*" | tac`
do
newpath=`echo $i | sed "s@\(.*\)$filename@\1$newfilename@i"`
sudo mv "$i" "$newpath"
echo "${count}: Renaming $i to $newpath"
let count++
done
表示将文件夹名和文件名中含有的“[4k清晰度]”给删除,测试过程中发现普通的字符串可以正常删除,但是有了“[]”后无法删除,请问各位大佬,这个“[]”要怎么弄呢?