我正在尝试重命名目录中的一堆音乐曲目,但出现此错误:
移动多个文件时,最后一个参数必须是目录
这是脚本:
for file in * ; do mv $file $(echo $file |sed 's/^.\{5\}//g') done
这适用于没有空格的文件,我将如何修改此脚本?
linux scripting bash sed
bash ×1
linux ×1
scripting ×1
sed ×1