From 44acd7291410c3445fb0b898363787d4ffb21bce Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 1 May 2014 21:23:01 -0400 Subject: [PATCH] Add ag (the_silver_searcher) page --- pages/common/ag.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/ag.md diff --git a/pages/common/ag.md b/pages/common/ag.md new file mode 100644 index 0000000000..742ecdeb4a --- /dev/null +++ b/pages/common/ag.md @@ -0,0 +1,19 @@ +# ag + +> The Silver Searcher. Like ack, but faster. + +- Find files containing "foo" + +`ag foo` + +- Find "foo" in files with a name matching "bar" + +`ag foo -G bar` + +- Find files whose contents match a regular expression: + +`ag '^ba(r|z)$'` + +- Find files with a name matching "foo" + +`ag -g foo`