tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Damon Goforth <damon () compsus ! com>
To: tru64-unix-managers
Subject: SUMMARY: A simple shell command question?
Date: Mon, 21 May 2001 21:24:40 +0000	[thread overview]
Message-ID: <102653647622015.tru64-unix-managers.marc@archive.invalid> (raw)

Hey there...
Way too many people to thank, but thanks to all anyway!

Many had variations on this:
----------------------------------------
for file in `ls` ; do
    target="`echo $file | tr 'A-Z;' 'a-z_'"
    mv "$file" "$target"
done
--------------------------------------------

or: (by the way, thanks to Steve Dyer (I used this!)
-----------------------------------------
for file in [A-Z]*
do
  echo "Will now translate $file"
  uppercase=`echo $file | tr '[A-Z]' '[a-z]' `
  mv -i $file $uppercase
done
------------------------------------------

But, by far the best suggestion (at least in my case) came from
Hugh Pritchard. His idea is to change the case as the files come 
accross in FTP. Exactly what I needed... Thanks Hugh... you da man!

------------------------------------------
below is Hugh's hint..
------------------------------------------
 Look at the man page for ftp on the 4100, in particular the "case"
sub-command.
Then you have the problem that ftp doesn't maintain directory structure.
But doing

        # ftp -i VMS-machine
        cd [wherever]
        lcd /where/ever
        case
        mget *.*

will convert case!
---------------------------------------------    

Damon Goforth, Systems/Network Engineer  email: damon@compsus.com
Compugraphics, USA. 120 C Albright Way, Los Gatos, CA. 95032 USA
    Tel: 4083411616  Cell: 4082180153   Fax: 4088662248


On Mon, 21 May 2001, Damon Goforth wrote:
> I'm migrating a mostly VMS network to Tru64. All is going well so far,
> except that I have to move a large quantity of files from the VMS machines
> to the Tru64 machine I've brought up (a 4100 on Tru64 v4.G). The problem I'm
> having is (of course) all the files from VMS come over in all caps. Is there
> any easy way of changing all the file names from all caps to all lowercase?
> What am I missing here? btw, I figured out the semicolon issue, so that's
> not a problem. Even just a pointer in the right direction would help.

                 reply	other threads:[~2001-05-21 21:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox