Skip to content

Instantly share code, notes, and snippets.

@tfnico
Created October 4, 2012 11:17
Show Gist options
  • Save tfnico/3833014 to your computer and use it in GitHub Desktop.
Save tfnico/3833014 to your computer and use it in GitHub Desktop.
how does ack work
➜ ~/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