From owner-freebsd-questions Tue Feb 25 18:03:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA04667 for questions-outgoing; Tue, 25 Feb 1997 18:03:31 -0800 (PST) Received: from atlantis.nconnect.net (root@atlantis.nconnect.net [206.54.227.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA04661 for ; Tue, 25 Feb 1997 18:03:26 -0800 (PST) Received: from arabian.astrolab.org (dial226.nconnect.net [206.54.227.226]) by atlantis.nconnect.net (8.8.4/8.7.3) with SMTP id TAA06597 for ; Tue, 25 Feb 1997 19:53:53 -0600 (CST) Message-ID: <3313999A.41C67EA6@nconnect.net> Date: Tue, 25 Feb 1997 20:02:02 -0600 From: Randy DuCharme Organization: Computer Specialists X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 3.0-SMP i386) MIME-Version: 1.0 To: questions@freebsd.org Subject: any sh or bash gurus out there? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Greetings, I'm stuck again. I have a couple hundred 'DOS' text files that I need to make use of. I need to get rid of that annoying '^M' at the end of each line. I can kill it like this... tr -d '\015' < filename > filename.new ; mv filename.new filename ... but there must be a simple way to automate this process and avoid having to type this over and over again. I'm wondering if there are any clever shell programmers out there that can help me with a script to walk a directory tree and process these files. Thanks Randy