Skip to content

Commit

Permalink
starting an ack FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Mar 31, 2009
1 parent 8e40a86 commit 0219a9e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -8,6 +8,9 @@ NEXT
[FIXES]
Fixed an amazingly bad call to cmp_ok() in t/ack-passthru.t.

[DOCUMENTATION]
Started an ack FAQ.


1.88 Sat Feb 7 13:51:35 CST 2009
[BIG CHANGES]
Expand Down
14 changes: 14 additions & 0 deletions ack-base
Expand Up @@ -698,6 +698,20 @@ the previous five lines from the log in each case.
Join the ack-users mailing list. Send me your tips and I may add
them here.
=head1 FAQ
=head2 Wouldn't it be great if F<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 C<-i>, C<-p> and C<-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 form the Unix shell:
$ perl -i -p -e's/foo/bar/g' $(ack -f --php)
=head1 AUTHOR
Andy Lester, C<< <andy at petdance.com> >>
Expand Down

0 comments on commit 0219a9e

Please sign in to comment.