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: schwengeler@ubaclu.unibas.ch (Hans Schwengeler, Astronomical Institute, Tel. 2055422) Subject: Re: Problem with DOS files tranfered to UNIX Date: 1997/04/17 Message-ID: <1997Apr17.102811.47475@yogi.urz.unibas.ch>#1/1 X-Deja-AN: 235409241 References: <33512C65.7450@greennet.gl> Organization: University of Basel, Switzerland Newsgroups: comp.unix.osf.osf1 In article <33512C65.7450@greennet.gl>, Kaj Stengade Christensen writes: > Hi > > I am having 2 problems with files that is tranfered from a DOS system to > my UNIX system. > > 1. When i tranfer DOS text files to UNIX there is a ^M in the end of all > lines (carige return). I was wondering is there is a utility that can > remove this from the file and where i can get the utility. > > 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. > > I am using an Alpha 2100 running OSF/1 ver. 3.2C > > Any help will be appreciated. > > Thanks > Kaj Stengade Christensen > System administrator Nukissiorfiit Greenland. > kc@greennet.gl > Dear Kaj, I found a script for removing CR's on the net, maybe it works for you: #! /bin/ksh # convert dos files to Unix by removing carriage returns. for f in $@ do tr -d '\015' <$f >${f}+ && mv -i $f ${f}~ && mv -i ${f}+ $f done Yours, Hans.