Date: Tue, 25 Feb 1997 18:31:06 -0800 (PST) From: Snob Art Genre <ben@narcissus.ml.org> To: Randy DuCharme <randyd@nconnect.net> Cc: questions@freebsd.org Subject: Re: any sh or bash gurus out there? Message-ID: <Pine.NEB.3.95.970225183012.3250C-100000@narcissus.ml.org> In-Reply-To: <3313999A.41C67EA6@nconnect.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Feb 1997, Randy DuCharme wrote: > 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. Why don't you ftp the files to yourself in ascii mode? Alternately, see the unix FAQ, which covers just this sort of thing, and man xargs. > Thanks > Randy > Ben "You have your mind on computers, it seems."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970225183012.3250C-100000>