From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f2991708fd57254c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeder.news-service.com!news2.euro.net!213.132.189.2.MISMATCH!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!hwmnpeer01.ams!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe3-win.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: programming question . . . User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-ID: Newsgroups: comp.lang.ada References: <1158526988.287711.242070@m73g2000cwd.googlegroups.com> <87ac4qbd70.fsf@nbi.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Sat, 23 Sep 2006 20:57:00 GMT NNTP-Posting-Host: 82.10.238.153 X-Trace: newsfe3-win.ntli.net 1159045020 82.10.238.153 (Sat, 23 Sep 2006 21:57:00 BST) NNTP-Posting-Date: Sat, 23 Sep 2006 21:57:00 BST Organization: NTL Xref: g2news2.google.com comp.lang.ada:6703 Date: 2006-09-23T20:57:00+00:00 List-Id: On Sat, 23 Sep 2006 21:22:27 +0200, Jacob Sparre Andersen wrote: > "lakeoftea" writes: > >> I'm trying to write a program that will look at a directory and take >> the "_"'s out of all of the files and replace them with spaces. >> this seems like an easy program but i haven't used ada since >> freshman year and i'm kind of stumped. any ideas. no this is not >> for an assignment :) > > I wouldn't use Ada for this task. On a well-equipped system, it can > be done with the command: > > perl -pe 's/_/ /g' * I was thinking about suggesting Perl, but perhaps: perl -pie 's/_/ /g' * might be more appropriate? (in-place editing of files) -- Adrian