How can I exclude .min.css files from ack-grep seach?
I have the syntax for adding a new ack-grep
filetype:
$ ack-grep --type-add=min=.min.js,.min.css --help types | grep min
--[no]min .min.js .min.css
But the problem is that it never seems to match any files, perhaps because my extensions ( .min.js
/ .min.css
) have 2 dots in them.
$ touch test.min.js $ ack-grep --min -f [nothing returned]
So how can I make it ack-grep
recognize a file type with 2 dots in it? And if this is not possible, then how can I search for js and css files without matching shorthand versions?
Ack will ignore min.js files from 1.96. This seems to have been included in request 142 . As far as CSS is concerned, it looks like this won't happen in 1.x. There is a pull request though if you might be concerned about setting your own fork at 219 .