How do you exclude a specific file from ack (ack-grep)?
To ignore a single file using ack 2.0, provide a filter spec to the –ignore-file flag: –ignore-file=is:cljout.js
To ignore a single file using ack 2.0, provide a filter spec to the –ignore-file flag: –ignore-file=is:cljout.js
Start by installing perl http://strawberryperl.com/ Install App::Ack by typing (in a windows command shell) C:\>cpan App::Ack And undoubtedly this will prove useful http://learn.perl.org/
Adding another line –ignore-dir=save.d did the trick
You could use the grep option -o, possibly in combination with changing your pattern to “.{0,10}<original pattern>.{0,10}” in order to see some context around it: -o, –only-matching Show only the part of a matching line that matches PATTERN. ..or -c: -c, –count Suppress normal output; instead print a count of matching lines for each input … Read more