From 5a82ba202f47e9a439823a6a18b10fb2f0d37778 Mon Sep 17 00:00:00 2001 From: Morgan Evans Date: Wed, 1 Oct 2014 18:02:25 -0400 Subject: [PATCH] adding ack --- pages/common/ack.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/ack.md diff --git a/pages/common/ack.md b/pages/common/ack.md new file mode 100644 index 000000000..6403c5fdb --- /dev/null +++ b/pages/common/ack.md @@ -0,0 +1,19 @@ +# ack + +> A search tool like grep, optimized for programmers. + +- Find files containing "foo" + +`ack {{foo}}` + +- Find files in a specific language + +`ack --ruby {{each_with_object}}` + +- Count the total number of matches for the term "foo" + +`ack -ch {{foo}}` + +- Show the file names containing "foo" and number of matches in each file + +`ack -cl {{foo}}` \ No newline at end of file