On Aug 21, 2012, at 8:21 PM, Bill Ricker <
bill....@gmail.com> wrote:
> In-place edits is not a direct Ack use-case. (Do we want to add it for Ack 2?)
No, ack will always be read-only. It's even got its own FAQ entry.
Wouldn’t it be great if ack did search & replace?
No, ack will always be read‐only. Perl has a perfectly good way to do
search & replace in files, using the "−i", "−p" and "−n" switches.
You can certainly use ack to select your files to update. For example,
to change all "foo" to "bar" in all PHP files, you can do this from the
Unix shell:
$ perl −i −p −e's/foo/bar/g' $(ack −f −−php)
The FAQ oughta go on the docs page at some point.
xoa
--
Andy Lester =>
an...@petdance.com =>
www.petdance.com => AIM:petdance