Naidim answered this question: How to replace spaces in file names using a bash script
This was the only answer I could get to work for me, but I don't understand what I am looking at.
for f in *\ *; do mv "$f" "${f// /_}"; done
- I didn't know the for loop would just search through all the files with this basic syntax.
- I see the mv statement, but what is that command expansion?