home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!sserve!hakea!auugcanb!johnwuu!johnw
- From: johnw@johnwuu.canb.auug.org.au (John Wright)
- Newsgroups: comp.unix.admin
- Subject: HELP: ned 'sed' paramters to strip carriage returns from
- Distribution: world
- Message-ID: <721322244snx@johnwuu.canb.auug.org.au>
- References: <Bx8H74.Dpz@news.cso.uiuc.edu>
- Date: Mon, 09 Nov 92 15:17:24 GMT
- Organization: Computer Sciences of Australia
- Reply-To: johnw@canb.auug.org.au
- Lines: 19
-
-
- In article <Bx8H74.Dpz@news.cso.uiuc.edu> djr48312@uxa.cso.uiuc.edu writes:
-
- >
- > 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.
- >
- You could try using tr -d "\014" < Dos.File > Unix.File to strip ^M's.
- I don't know if this is any better/more efficient than sed.
-
- +========================================================================+
- | John Wright | Standard | Voice : +61 6 249-1871 |
- | Computer Sciences of Australia | Disclaimer | Fax : +61 6 253-1259 |
- | johnw@canb.auug.org.au | Notice | Locn : Canberra |
- | 100032.553@compuserve.com | Applies | Australia |
- +========================================================================+
-