[olug] Text search and Replace
Jay Hannah
jay at jays.net
Tue Nov 25 19:19:40 UTC 2003
On Tuesday, November 25, 2003, at 10:52 AM, Terry wrote:
> lots of ways to do it, here is a 1-liner for you:
> perl -i.backup -pe 's/foo/bar/' filename
> --- Jeff Norton <jnorton at jggt.com> wrote:
>> I want to search a directory on my computer and replace certain text
>> within documents with a new text.
Watch our Terry. When I see folks posting Perl advice to OLUG I tend to
pester them to join Omaha Perl Mongers. Lucky for you we haven't had a
meeting this month because I'm
/(too|2) (laz|bus)y\./
Damn, I amuse me. -grin-
Jay Hannah
Omaha Perl Mongers: http://omaha.pm.org
More information about the OLUG
mailing list