for i in * do newname=`echo $i | sed -e 's/[:?]//g'` echo "Old name: $i New name: $newname" done