#!/bin/bash for i in * do j=`echo $i | dd conv=ucase 2>/dev/null` mv $i tmp-mkucase mv tmp-mkucase $j done