Re: script that change all file names

From: Bruce Harvey (BruceH@ROUTESCAPE.COM)
Date: Fri Nov 01 2002 - 10:53:08 EST


# of course, if you take out the -f, you can do directories too
# you might want to add not crossing NFS boundaries or file
# system boundaries, but this is the simple script.
# if you perform this at the root directory,
# everything is on YOUR head, not mine!:

find . -type f -print | while read f
do
    directory="`dirname $f`"
    oldname="`basename $f`"
    newname="`echo $oldname | tr 'a-z' 'A-Z'`"
    mv $f $directory/$newname
done

---------------------------------------
Bruce T. Harvey, Special Projects Developer
bruceh@routescape.com, www.routescape.com
Insight Distribution Systems --- Hunt Valley, MD

-----Original Message-----
From: Tran, Lam [mailto:Lam.Tran@GOODMANMFG.COM]
Sent: Friday, November 01, 2002 10:52 AM
To: aix-l@Princeton.EDU
Subject: [aix-l] script that change all file names

hello,

Is there anybody out there that has a script to change all files from
lowercase to uppercase?. Please let me know

thanks



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT