Re: [OT] Changing the case of filenames
From: Matthew Miller (mattdm_at_mattdm.org)
Date: 04/29/05
- Previous message: Nigel Wade: "Re: FC3 install hangs "reading package info""
- In reply to: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Next in thread: David Niemi: "Re: [OT] Changing the case of filenames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Apr 2005 09:48:36 -0400 To: For users of Fedora Core releases <fedora-list@redhat.com>
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. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Nigel Wade: "Re: FC3 install hangs "reading package info""
- In reply to: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Next in thread: David Niemi: "Re: [OT] Changing the case of filenames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|