remove space in filename and replace with underscore linux 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