From owner-freebsd-questions Wed Apr 3 15: 6:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 94EBB37B400 for ; Wed, 3 Apr 2002 15:06:28 -0800 (PST) Received: from wood ([12.247.63.44]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020403230626.BPZZ22231.rwcrmhc52.attbi.com@wood>; Wed, 3 Apr 2002 23:06:26 +0000 From: "Adam Wood" To: "'ann kok'" , Subject: RE: special charaters (return key) Date: Wed, 3 Apr 2002 17:05:28 -0600 Message-ID: <003101c1db64$0f1f8120$0100a8c0@wood> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: <20020403204928.7E77237B494@hub.freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > how do type the special character? ^M (return key) > I want to remove it on the file You could use tr to remove the ^M characters like this: cat file | tr -d '\015' or this to make a new file: tr -d '\015' < file.txt > newfile.txt This works also: tr -d '\r' < file.txt > newfile.txt Hope that helps. Adam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message