Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!unix.cis.pitt.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: ^M 's in uploaded text files. Keywords: Help! Message-ID: <1990Feb1.212333.7495@athena.mit.edu> Date: 1 Feb 90 21:23:33 GMT References: <1990Feb1.193031.11699@iwarp.intel.com> <5622@udccvax1.acs.udel.EDU> <1990Feb1.164704.23581@athena.mit.edu> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Distribution: usa Organization: Massachusetts Institute of Technology Lines: 42 In article <1990Feb1.193031.11699@iwarp.intel.com>, merlyn@iwarp.intel.com (Randal Schwartz) writes: > Bzzzt. Can't combine that sorta quoting. tr will get '012' as an > argument, not '\012', so what you wanted was either: > "\\012" > or > '\012' Oh, really? In csh: % cat testfile line 1 line 2 % tr -d "\012" < testfile line 1line 2% tr -d '\012' < testfile line 1line 2% In sh: $ tr -d "\012" < testfile line 1line 2$ tr -d '\012' < testfile line 1line 2$ More relevantly (once again, in csh): % echo \012 012 % echo "\012" \012 % echo '\012' \012 % So, what were you saying, Randal? :-) Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710