2
1
Wondering if there's a way to look for something like ack foo "*.scss"
2
1
Wondering if there's a way to look for something like ack foo "*.scss"
0
Generally ack uses predefined file types, so the pessimistic answer is "No". However, if you regularly search in .scss files, you may want to set it as a file type in your .ackrc by adding the following line:
--type-set=sassy=.scss
0
"*.scss"
isn't a regex, but shell globbing.
Like voyager42 says about, use
--type-set=sassy=.scss
in your .ackrc and then you can do
ack foo --sassy
or if you do NOT want to search sassy files
ack foo --nosassy
Not sure about
ack
, but my go-to tools for such a task would begrep
, followed possibly byfind
if there are a lot of nested folders we're going through. – Darth Android – 2012-08-03T19:19:30.970