Date: Tue, 25 Feb 1997 19:10:42 -0800 (PST) From: Dan Busarow <dan@dpcsys.com> To: Randy DuCharme <randyd@nconnect.net> Cc: questions@freebsd.org Subject: Re: any sh or bash gurus out there? Message-ID: <Pine.UW2.3.95.970225185923.14997C-100000@cedb> 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: > 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... for filename in `find . -name "*.txt"` do tr -d '\015' < filename > filename.new ; mv filename.new filename done Plug in an appropriate expression for selecting the files and run from the root of the tree. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970225185923.14997C-100000>
