链接:

用 tr :

find . -type f -name "* *" -print |
while read name; do
na=$(echo $name | tr ' ' '_')

 

if [[ $name != $na ]]; then
mv "$name" $na
fi
done

Logo

更多推荐