Date: Fri, 28 Feb 97 12:29:17 +0700 From: "Victor A. Sudakov" <vas@vas.tomsk.su> To: freebsd-questions@freebsd.org Subject: Re: any sh or bash gurus out there? Message-ID: <ACjqc5p8h2@vas.tomsk.su> References: <199702260926.BAA27407@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Feb 1997, Randy DuCharme wrote: > > > 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. Look at /usr/ports/russian/d1489 This is exactly what you need. --- Victor Sudakov http://www.tomsk.su/r/persons/vas.htm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ACjqc5p8h2>
