From owner-freebsd-questions Fri Apr 4 05:05:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA06643 for questions-outgoing; Fri, 4 Apr 1997 05:05:25 -0800 (PST) Received: from shire.domestic (kuebart.stuttgart.netsurf.de [194.233.216.182]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA06632 for ; Fri, 4 Apr 1997 05:05:19 -0800 (PST) Received: (from joki@localhost) by shire.domestic (8.8.5/8.7.3) id PAA00627 for questions@freebsd.org; Fri, 4 Apr 1997 15:08:17 +0200 (MET DST) Date: Fri, 4 Apr 1997 15:08:17 +0200 (MET DST) From: Joachim Kuebart Message-Id: <199704041308.PAA00627@shire.domestic> To: questions@freebsd.org Subject: Removing DOS's ^M Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk There used to be a utility to do that, something like a filter called crlf or so, but I can't find that. For now, to convert Text files (that do NOT contain any other control characters apart from ^M and newline), you can use cat -v filename | sed 's/^M//' > outfilename alternatively to EMACS, which is Eight Megabytes and Constantly Swapping. Maybe even sed offers a better way, but this is what comes to my mind :-) c u Jo