Skip to content

Instantly share code, notes, and snippets.

@Frost
Created September 7, 2016 09:05
Show Gist options
  • Save Frost/88f3c8d9c704d9b1520b667a2c16da4a to your computer and use it in GitHub Desktop.
Save Frost/88f3c8d9c704d9b1520b667a2c16da4a to your computer and use it in GitHub Desktop.
ag --files-without-matches
$ echo "foo" > foo.txt
$ echo "bar" > bar.txt
$ echo "
foo
bar
" > foobar.txt
$ ag -l foo
foo.txt
foobar.txt
$ ag -l bar
foobar.txt
bar.txt
$ ag -L foo
foobar.txt
bar.txt
$ ag -L bar
foo.txt
foobar.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment