批量删除文件名中包含的空格(最新方法)

参考:https://stackoverflow.com/questions/2709458/how-to-replace-spaces-in-file-names-using-a-bash-script

bash 4.0才支持的脚本:

#!/bin/bash
shopt -s globstar
for file in **/*\ *
do
mv "$file" "${file// /_}"
done

京ICP备11047313号-19
Scroll to Top