home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!casey!gaboon!a3bee2!n1gva!root
- From: root@n1gva (The Nefarious Dr. Sponge)
- Subject: Re: stripping cr/lf's
- Message-ID: <1993Jan2.124525.16506@n1gva>
- Organization: Evil Weather Machines LTD
- References: <1992Dec31.071312.6153@netcom.com>
- Date: Sat, 2 Jan 93 12:45:25 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 have to do this alot with MS-DOS text files. :-(
-
- Try: tr -d "\015" < file_with_cr.s > new_file_wo_cr.s
-
- See also the man page on 'tr'.
-
- Fred
-
- --
- < Fred Floberg - N1GVA > Evil Weather Machines LTD. <
- > 136 West Spring St. < >
- < West Haven, CT 06516 > My employer has no opinions. <
- > USA < email: ...!uunet!hsi!a3bee2!n1gva!n1gva >
-