Skip to content

Instantly share code, notes, and snippets.

@tdhopper
Created January 5, 2015 16:25
Show Gist options
  • Save tdhopper/af61c5b5c0e701820005 to your computer and use it in GitHub Desktop.
Save tdhopper/af61c5b5c0e701820005 to your computer and use it in GitHub Desktop.
ag ignores files in a directory called 'lib'
tdhopper@~/temp $ echo "hello" > file1.txt
tdhopper@~/temp $ mkdir lib
tdhopper@~/temp $ cp file1.txt lib/file2.txt
tdhopper@~/temp $ mkdir dir2
tdhopper@~/temp $ cp file1.txt dir2/file3.txt
tdhopper@~/temp $ ag hello
dir2/file3.txt
1:hello
file1.txt
1:hello
tdhopper@~/temp $ ack hello
dir2/file3.txt
1:hello
file1.txt
1:hello
lib/file2.txt
1:hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment