I have a number of files in a folder, and I want to replace every space character in all file names with underscores. How can I achieve this?
Use sh...
for i in *' '*; do mv "$i" `echo $i | sed -e 's/ /_/g'`; done
If you want to try this out before pulling the trigger just change mv to echo mv.
mv
echo mv