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?
+3
source to share