Re: [OT] Changing the case of filenames

From: Paul Howarth (paul_at_city-fan.org)
Date: 04/29/05

  • Next message: esm_at_logic.net: "Re: [OT] Changing the case of filenames"
    Date: Fri, 29 Apr 2005 14:52:39 +0100
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Terry Polzin wrote:
    > 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

    No, it shouldn't. The "tr" process would have nothing to do since no
    input was provided to it.

    Paul.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: esm_at_logic.net: "Re: [OT] Changing the case of filenames"

    Relevant Pages

    • Re: [OT] Changing the case of filenames
      ... > 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 ...
      (Fedora)
    • Re: [OT] Changing the case of filenames
      ... > I am running a fortran program which requires all input file names to be ... > uppercase. ... > in trying to use this from the command line (or even in a bash script). ...
      (Fedora)
    • Re: [OT] Changing the case of filenames
      ... > I am running a fortran program which requires all input file names to be ... > uppercase. ... > in trying to use this from the command line (or even in a bash script). ...
      (Fedora)
    • XP Pro - CVF permission problem
      ... I'm having trouble with a Fortran program running under XP Professional ... input file because it doesn't have permission to do so. ... I'm afraid I have a profound ignorance of XP Pro and how it determines ... be cured by some compilation switch or other. ...
      (comp.lang.fortran)
    • Re: fortran program reading an external text (and numbers) file and writing with edits
      ... I am looking for some guidence in writing a fortran program which reads ... an external file (one page consisting of text and numbers) and ... Then for every read of the input file see if you need to change any data. ...
      (comp.lang.fortran)