A personal blog of Christopher Wigginton; a nerd by nature, programming polyglot, cooking enthusiast and fermentation practitioner.
#!/bin/ksh find /your/file/directory -type f -name "* *" | \ while read file; do \ newfile="$(echo "$file" | sed 's/ /_/g')" mv "${file}" "${newfile}" done
No comments:
Post a Comment