Re: [OT] Changing the case of filenames
From: Terry Polzin (fox3ec208_at_wideopenwest.com)
Date: 04/29/05
- Previous message: Matthew Miller: "Re: [OT] Changing the case of filenames"
- In reply to: David Niemi: "[OT] Changing the case of filenames"
- Next in thread: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Reply: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: For users of Fedora Core releases <fedora-list@redhat.com> Date: Fri, 29 Apr 2005 09:50:33 -0400
On Friday 29 April 2005 09:39 am, David Niemi wrote:
> I am running a fortran program which requires all input file names to be
> uppercase. As things were originally done in Windo$e all the filenames
> are mixed case (with numbers).
>
> Searching around I came across the "tr" command, but my difficulty comes
> in trying to use this from the command line (or even in a bash script).
>
> mv * | tr [a-z] [A-Z]
>
> Does not work as mv requires a directory for the objective with multiple
> files. All of the scripts that I have seen are mainly for changing the
> case of text in a text file so wouldn't work for me.
>
> So, how would I do this?
find . -type f -exec tr [a-z] [A-Z] {} \;
should work
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- application/pgp-signature attachment: stored
- Previous message: Matthew Miller: "Re: [OT] Changing the case of filenames"
- In reply to: David Niemi: "[OT] Changing the case of filenames"
- Next in thread: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Reply: Paul Howarth: "Re: [OT] Changing the case of filenames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|