Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: sed help
- To: Tokyo Linux Users Group <tlug@example.com>
- Subject: Re: tlug: sed help
- From: Scott Stone <sstone@example.com>
- Date: Fri, 4 Dec 1998 19:38:49 +0900 (JST)
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <Pine.LNX.3.96.981204122728.18510E-100000@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
On Fri, 4 Dec 1998, Michael Casinghino wrote: > I have a file that is using ^M for line delimitification. How can I > replace these with LF's? An answer containing the string "sed -e" would > be most interesting for me. BTW, 'man ascii' says CR = \r = 0x0D and LF = > \n = 0x0A. Really all you need to do is get rid of the ^Ms. there should already be linefeeds in there. there's a program called 'dos2unix' which was designed for this special case, but if you want to use sed, I think: (sed 's/\r//g' file > file.new;mv -f file.new file) -------------------------------------------------- Scott M. Stone <sstone@example.com, sstone@example.com> Head of TurboLinux Development/Systems Administrator Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan) ------------------------------------------------------------------ Next Technical Meeting: 12 December, 12:30 at Temple Univ. Japan *NEW LOCATION* a map is available at http://www.tuj.ac.jp/maps.html Next Nomikai: 15 January 1999, 19:30 Tengu TokyoEkiMae 03-3275-3691 ------------------------------------------------------------------ more info: http://tlug.linux.or.jp Sponsor: PHT
- Follow-Ups:
- Re: tlug: sed help
- From: Jim Schweizer <schweiz@example.com>
- Re: tlug: sed help
- From: Matt Gushee <matt@example.com>
- References:
- tlug: sed help
- From: Michael Casinghino <michael@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: sed help
- Next by Date: Re: tlug: sed help
- Prev by thread: Re: tlug: sed help
- Next by thread: Re: tlug: sed help
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links