#!/bin/bash ls | while read -r FILE do mv -v "$FILE" `echo $FILE | tr ' ' '_' ` done
What doesn't kill you makes you smaller (Super Mario)