[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [OT] Changing the case of filenames
- From: Matthew Miller <mattdm mattdm org>
- To: For users of Fedora Core releases <fedora-list redhat com>
- Subject: Re: [OT] Changing the case of filenames
- Date: Fri, 29 Apr 2005 09:48:36 -0400
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 mattdm org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
Current office temperature: 72 degrees Fahrenheit.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]