Re: [OT] Changing the case of filenames

From: David Niemi (drn_temp2_at_rogers.com)
Date: 04/29/05

  • Next message: rado: "syncing users to slave system"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Fri, 29 Apr 2005 10:15:53 -0400
    
    

    > 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).
    On Fri, 2005-29-04 at 14:45 +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

    Thanks for all the VERY FAST responses everyone. As just about all the
    responses were variants of the same thing I'll be going with Paul's
    suggestion, I was about 1/2 way there in my feeble attempts at writing a
    bash script for this. I'll probably spruce it up a bit for more general
    usage as a general script to change case of file names.

    Dave

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

  • Next message: rado: "syncing users to slave system"

    Relevant Pages

    • Re: Really Baffled any clues as to what is going on?
      ... > I am working on a script, it has an input file of machine names. ... > Dim fstrLogFilePath ... > fstrInputFile = InputBox("Enter name of file containing machines to ...
      (microsoft.public.scripting.vbscript)
    • Re: Parse an input file using a Key value
      ... I have an input file in the following format getting repeated. ... I tried to achieve this task using the following script below but it is ... To tranpose certain rows into columns and sort by one of the ...
      (comp.unix.shell)
    • Re: Running a DOS program using Microsoft Command Shell
      ... needed are available by public FTP: ... and the input file is run.txt. ... missing the ESC character, since I don'y know how to feed ESC in this ... When instructed from shell script, the progam simply ignores all SendKeys. ...
      (microsoft.public.windows.server.scripting)
    • newbie problem - how do I get dll version & size?
      ... I have a bunch of machines on which I need to check .dll revisions. ... to write a simplescript to do this. ... Set objFSO = CreateObject ... Line 1 of my input file seems to be skipped. ...
      (microsoft.public.scripting.vbscript)
    • Re: Really basic data entry question [Beginner]
      ... Because if your teacher told you ... 'data script'. ... I've never once seen an input file that was laid out like ... ramps so that you can jump your car over a narrow river; ...
      (comp.lang.java.programmer)