On Monday 2 July 2007 22:59, Mick wrote: > Hi All, > > I backed up my wife's WinXP fs using K3B and I used default settings > which unfortunately converted all file names to CAPITALS and shortened > them to 8 characters maximum, just like DOS would do. Is there a > clever way to change some of them back to lower case (in batches > within given directorates) so that she doesn't have to do it manually > one by one? I do not want to change the access times, only the > filename case letters.
Assuming there are no spaces in the names, something like: cd $targetdir for n in *; do newname=`echo $n | tr -s 'A-Z' 'a-z'` mv $n $newname done should work. It might be possile to do the same using bash alone, but I'm too lazy to check now. -- [EMAIL PROTECTED] mailing list

