Change spaces in filenames and directories to underscores

URL's don't look nice when directories or filenames contain spaces they are typically linked with ugly %20 in the URL making things hard to read easily.

I had uploaded a large directory of hundreds of files all containing spaces, here is what was used to fix those spaces.


find . -exec rename -n 's/ /_/g' '{}' \;


find . -type f -exec rename -n 's/ /_/g' '{}' \;