linux rename files replace space with underscore code example
Example: replace filename space with underscore bash
for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done
for file in *; do mv "$file" `echo $file | tr ' ' '_'` ; done