ls | grep " " > /tmp/list$$ while read i do fnew=`echo "$i" | sed 's/ /_/g'` mv "$i" $fnew done < /tmp/list$$ rm /tmp/list$$ Tested in ksh.... rudy
ls | grep " " > /tmp/list$$ while read i do fnew=`echo "$i" | sed 's/ /_/g'` mv "$i" $fnew done < /tmp/list$$ rm /tmp/list$$ Tested in ksh.... rudy