twimo
twimo

Reputation: 4207

Is there any way to search in filetypes not recognized by ack?

You can use ack --js to search only in js files. But what if the file type I want to search for is not currently recognized by ack? Any way to work around it?

Upvotes: 1

Views: 146

Answers (1)

CanSpice
CanSpice

Reputation: 35798

You could define a new type by adding something like:

--type-set=eiffel=.e,.eiffel

...to your ~/.ackrc file. You could also use the -a command-line option that searches (nearly) all files.

Upvotes: 1

Related Questions