[plug] Alternating caps problem

Arkem arkem at mornmist.2y.net
Fri Oct 26 10:04:36 WST 2001


> #!/bin/sh
> for file in $*
> do
> if [ -f $file ]
> then
>   lcfile=`echo $file | tr [:upper:] [:lower:]`
>   if [ $file != $lcfile ]
>   then
>     mv -i $file $lcfile
>   fi
> fi
> done

Thanks for this Steve, after running fsck on the drive and fixing all 
the problems it found (took 45mins!!) most things seem fixed, some 
files are still missing and some directories are still in alternating 
caps and after each reboot fsck finds more errors so I'm thinking 
that the hard drive is on its way out and am currently trying to 
rescue all the data I can. Thanks for this script its quite helpful.

- Paul



More information about the plug mailing list