浏览代码

Add ag (the_silver_searcher) page

Robert Speicher 11 年之前
父节点
当前提交
44acd72914
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/ag.md

+ 19 - 0
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`