参考: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
参考: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