From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622015.tru64-unix-managers.marc@archive.invalid> From: Damon Goforth Date: Mon, 21 May 2001 21:24:40 +0000 To: tru64-unix-managers Subject: SUMMARY: A simple shell command question? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622015 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.