From: Ray Schafer (schafer@TKG.COM)
Date: Sun Nov 03 2002 - 13:07:14 EST
Tran, Lam wrote:
> hello,
>
> Is there anybody out there that has a script to change all files from
> lowercase to uppercase?. Please let me know
>
> thanks
If you use Korn Shell there is a nice builtin you can use to do this.
You won't require any outside commands like tr.
typeset -u FILE #Translate the contents of the variable FILE to upper case.
cd /where/the/files/are
for file in *
do
if [[ -f $file ]]; then
FILE=$file
mv $file $FILE
fi
done
>
-- Ray Schafer - WFSO NetBackup/Bare Metal Restore Team: (512) 433-3345, cell (512) 426-3188 My complete contact info is at http://wfso.veritas.com/bio/schafer_ray Got questions? The VIC http://wfso.veritas.com/vic is how WFSO answers them!
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT