home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!Sirius.dfn.de!darwin.sura.net!mips!sdd.hp.com!zaphod.mps.ohio-state.edu!uunet.ca!canrem!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: problem with vi..
- Message-ID: <1992Aug23.132141.18218@druid.uucp>
- Date: Sun, 23 Aug 1992 13:21:41 GMT
- References: <2195@fnnews.fnal.gov> <514@alden.UUCP> <josef.714392567@uranium>
- Organization: D'Arcy Cain Consulting
- Lines: 15
-
- Josef Moellers <mollers.pad@sni.de> writes:
- >[ One way to remove ^M's deleted ]
- >I usually do ":1,$s/.$//", as the ^M's are the last character on a line.
- >This works fine. Then I do "G" and get rid of the ^Z's (e.g. "Gdd").
-
- It seems to me that sed is overkill for getting rid of a single character
- in a file. How about:
-
- tr -d '\015'
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-