Created
October 4, 2012 11:17
-
-
Save tfnico/3833014 to your computer and use it in GitHub Desktop.
how does ack work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~/projects/viaboxx-puppet/[master]✗>grep -r "site.erb" * | |
modules/apache2/manifests/init.pp: content => template("apache2/etc/apache2/sites-available/site.erb"), | |
➜ ~/projects/viaboxx-puppet/[master]✗>ack "site.erb" | |
➜ ~/projects/viaboxx-puppet/[master]✗> | |
# SOLUTION: By default, ack ignores unknown file types, including *.pp. This works: | |
➜ ~/projects/viaboxx-puppet/[master]✗>ack -a 'site.erb' -G '\.pp' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment