home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!jefouger
- From: jefouger@nyx.cs.du.edu (Jim Fougeron)
- Subject: Re: stripping cr/lf's
- Message-ID: <1992Dec31.165409.23109@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: University of Denver, Dept. of Math & Comp. Sci.
- References: <1992Dec31.071312.6153@netcom.com>
- Date: Thu, 31 Dec 92 16:54:09 GMT
- Lines: 19
-
- kasajian@netcom.com (Kenneth Kasajian) writes:
-
-
- >How do I strip the cr's from a text file? There must be a standard
- >unix way of doing it!
- >thanks
-
- I perform this task with a utility from Omen (rz/sz people) called undos.
- This program will convert files from dos-unix-mac-cpm.
- If you wanted to do this ONLY using standard Unix commands, one way is:
- tr -d '/15' < infile > outfile
- NOTE: Do not do this on anything other than PLAIN text, or you will end up
- with a corrupted output file.
- Hope this helps.
- --
- ---------------------------------------------------------------------------
- | Jim Fougeron | What is the true meaning of happiness? |
- | jefouger@nyx.cs.du.edu | Is it money, cars and women, ... or |
- | jimfn@ids.net | just money and cars? Calvin & Hobbes |
-