LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 1 Aug 2000 14:14:38 -0700
Reply-To:   Cassell.David@EPAMAIL.EPA.GOV
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "David L. Cassell" <Cassell.David@EPAMAIL.EPA.GOV>
Subject:   Re: Newlines in Unix Text Data
Comments:   To: wwvierg@ibm.net
Content-type:   text/plain; charset=us-ascii

William W. Viergever wrote [in part]: > and Jack Hamilton wrote in part]: > >I'll let Karsten tell you how to do it with Perl. > > If not his Self, then stat-man David C.? > > (it's OK Dave, you got invited to)

Well, since you asked so politely... you can strip those pesky carriage returns from Dan's data.txt file *and* save the old file in a backup form like this:

perl -i.bak -lpe 's|\r$||' data.txt

Yes, there are some oddities scattered in there. But don't ask about them in a SAS mailing list! :-)

Still, as has been pointed out, avoiding the problem in the first place is the best solution!

David -- David Cassell, OAO Corp. Cassell.David@epa.gov Senior computing specialist mathematical statistician


Back to: Top of message | Previous page | Main SAS-L page