tags:

views:

21

answers:

1

I love ack.

I need to search for 'foo' in all the files except the test files.

ack has option -G to specify regex. However I am not sure how do I write regex for the condition that look for all files but ignore files with word 'test'.

A: 
^(?!.*test.*).*$
Jeff