Batch remove files to remove spaces: ====================================== This will remove spaces and replace them with a dash: for file in *; do mv "$file" `echo $file | tr ' ' '-'` ; done This will remove spaces, then underscores with a dash: for file in *; do mv "$file" `echo $file | tr ' ' '-'` ; done && for file in *; do mv "$file" `echo $file | tr '_' '-'` ; done ---------------------------------------------------------------------------------------------- Source: https://stackoverflow.com/questions/1806868/linux-replacing-spaces-in-the-file-names Date: June 1st 2024