#!/bin/sh ## Just a little friendly utility from JeremyBrand.com ;) ## ## Turn spaces into underscores for everything in a directory ## for x in * ; do y=`echo "$x" | tr ' ' '_' ` if [ "$x" != "$y" ]; then mv "$x" "$y" fi done exit;