Hi All, it has been a while i posted here!
I need a little modification to a script.
I need this script to change the first letter of each word in a line to (capital letters) if it is not already in capital letter.
That need to be done before the rest of the script removes the (blank space) as it does nicely.
Not sure if this is possible.
Thanks for your help.
Code:
#!/bin/bash
# noblankspace is a script to remove blank space in the name of files.
# Thxs to Retsaw.
IFS=$'\n';for i in `find /home/normand/Desktop/TEMP -type f`;do dir=`dirname $i`;name=`basename $i|sed "s/ //g"`;mv $i $dir/$name;done;unset IFS
#Obviously, change /path/to/files to where the files you want renamed are located. If you want underscores instead of spaces, change the sed command to:
#sed "s/ /_/g"