From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: programming question . . .
Date: Sat, 23 Sep 2006 20:57:00 GMT
Date: 2006-09-23T20:57:00+00:00 [thread overview]
Message-ID: <pan.2006.09.23.20.54.21.440233@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: 87ac4qbd70.fsf@nbi.dk
On Sat, 23 Sep 2006 21:22:27 +0200, Jacob Sparre Andersen wrote:
> "lakeoftea" <lakeoftea@gmail.com> 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
next prev parent reply other threads:[~2006-09-23 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-17 21:03 programming question . . lakeoftea
2006-09-17 23:12 ` Martin
2006-09-18 6:48 ` Maciej Sobczak
2006-09-23 19:22 ` Jacob Sparre Andersen
2006-09-23 20:57 ` Dr. Adrian Wrigley [this message]
2006-09-25 10:28 ` Jacob Sparre Andersen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox