home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!wupost!gumby!destroyer!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!eff!news.oc.com!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: HELP: ned 'sed' paramters to strip carriage returns from dos text files
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Nov7.063313.17900@news.eng.convex.com>
- Date: Sat, 7 Nov 1992 06:33:13 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <Bx8H74.Dpz@news.cso.uiuc.edu>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 24
-
- From the keyboard of djr48312@uxa.cso.uiuc.edu (X X):
- :I do a lot of transferring of files between dos and unix. Most of it going from
- :the unix to dos direction. Im going to need to be able to copy a dos text file
- :to a unix box and get rid of the '^m' at the end of each line. A while ago
- :someone gave me a sed parameter to do the job. I need it again.
-
- tr -d '\015'
- or
- perl -pe chop
-
- work for me.
-
- well so does
-
- perl -pe 'tr/\015//d'
-
- but chop is faster.
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
- It's rural America. It's where I came from. We always refer to ourselves
- as real America. Rural America, real America, real, real, America.
- --Vice President Dan Quayle
-