[OT] Changing the case of filenames
Matthew Miller
mattdm at mattdm.org
Fri Apr 29 13:48:36 UTC 2005
On Fri, Apr 29, 2005 at 02:45:05PM +0100, Paul Howarth wrote:
> You could use a script like this one:
>
> #!/bin/sh
> for f in *
> do
> F="`echo $f | tr a-z A-Z`"
> echo Renaming \"$f\" to \"$F\"
> mv "$f" "$F"
> done
>
Or more concisely
for f in *; do mv -v $f $( echo $f | tr a-z A-Z ); done
(Not that there's anything wrong with the original script.)
--
Matthew Miller mattdm at mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
Current office temperature: 72 degrees Fahrenheit.
More information about the fedora-list
mailing list