From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,58d64677f09c7432 X-Google-Attributes: gidfee84,public From: slale@ge-harris.com (Shripad Lale) Subject: Re: Problem with DOS files tranfered to UNIX Date: 1997/04/17 Message-ID: <5j5gs9$a31$1@Commuter.ge-harris.com>#1/1 X-Deja-AN: 235489261 References: <33512C65.7450@greennet.gl> Organization: GE-Harris Railway Electronics Newsgroups: comp.unix.osf.osf1 Kaj Stengade Christensen (kajsc@greennet.gl) wrote: : I am having 2 problems with files that is tranfered from a DOS system to : my UNIX system. ...... : 2. I am using CuteFTP to tranfer files from DOS to UNIX and when i do : this alle the files in is uppercase, and i need them in lowercase. Is : there a utility in OSF/1 to convert the filenames or where can i get a : program / script that can do this. Put the following one line script in your path in a file (say), 'lcase': mv $1 `echo $1 | awk '{print tolower($0)}'` Then use : lcase to convert the filename to lowercase. One question to you wizards out there. Actually, this command is small enough to warrent being an alias. But the single quote (') character required in the awk command makes it very difficult. Any idea how you could make lcase into an alias instead of an one line executable file? -- +--------------------------------+------------------------------+ | Shripad Lale | | | Tata Consultancy Services,Pune | Tel(O) : (407)-242-4204 | | c/o General Electric-Harris | Tel(R) : (407)-956-2547 | | 407, John Rodes Blvd, | email : slale@ge-harris.com | | Melbourne, FL 32901, USA | | +--------------------------------+------------------------------+