{"id":11092,"date":"2013-07-16T21:16:29","date_gmt":"2013-07-16T12:16:29","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=11092"},"modified":"2013-07-16T21:16:29","modified_gmt":"2013-07-16T12:16:29","slug":"the-silver-searcher","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/the-silver-searcher\/","title":{"rendered":"grep\u3088\u308a\u3082\u901f\u3044ack\u3088\u308a\u3082\u901f\u3044\u300cThe Silver Searcher\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2013\/07\/0cea7d60c070d96e74df7fc628cb1356.png\" alt=\"Ggreer the silver searcher  GitHub\" title=\"ggreer_the_silver_searcher \u00b7 GitHub.png\" border=\"0\" width=\"560\" height=\"280\" \/><br \/>\n\u300c<a href=\"https:\/\/github.com\/ggreer\/the_silver_searcher\">The Silver Searcher<\/a>\u300d\u306f\u3001grep\u3088\u308a\u901f\u3044ack\u3088\u308a\u3055\u3089\u306b\u9ad8\u901f\u306a\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30bd\u30d5\u30c8(<a href=\"http:\/\/geoff.greer.fm\/2011\/12\/27\/the-silver-searcher-better-than-ack\/\">\u4f5c\u8005\u30d6\u30ed\u30b0<\/a>)\u3002\u4e3b\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5bfe\u8c61\u306b\u3057\u305f\u691c\u7d22\u30bd\u30d5\u30c8\u3067\u3001\u6b21\u306e\u3088\u3046\u306a\u7279\u5fb4\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ul>\n<li>ack\u3088\u308a3\u301c5\u500d\u9ad8\u901f\u3002<br \/>\n<Li>.gitignore\u307e\u305f\u306f.hgignore\u304b\u3089\u30d1\u30bf\u30fc\u30f3\u3092\u8aad\u307f\u8fbc\u307f\u30d5\u30a1\u30a4\u30eb\u3092\u7121\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<li>\u691c\u7d22\u3057\u305f\u304f\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u3001.agignore\u30d5\u30a1\u30a4\u30eb\u306b\u30d1\u30bf\u30fc\u30f3\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3002\n<li>\u30b3\u30de\u30f3\u30c9\u540d\u304cack\u3088\u308a\u77ed\u3044(\u203bag\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u540d\u306a\u306e\u3067)\u3002\n<\/ul>\n<p><!--more--><br \/>\nGentoo, OS X, ArchLinux\u3001FreeBSD\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u624b\u8efd\u306b\u5c0e\u5165\u53ef\u80fd(\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u81ea\u4f53\u306fC\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u69d8\u5b50)\u3002TextMate\u3084Vim\u3001Emacs\u3068\u3044\u3063\u305f\u30a8\u30c7\u30a3\u30bf\u304b\u3089\u3082\u5229\u7528\u53ef\u80fd\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<pre>\nggreer@carbon:~\/cloudkick\/reach% du -sh\n250M    .\n\nggreer@carbon:~% time grep -r -i SOLR ~\/cloudkick\/reach | wc -l\n     617\n11.06s user 0.81s system 96% cpu 12.261 total\n\nggreer@carbon:~% time ack -i SOLR ~\/cloudkick\/reach | wc -l\n     488\n2.87s user 0.78s system 97% cpu 3.750 total\n\nggreer@carbon:~% time ag -i SOLR ~\/cloudkick\/reach | wc -l\n     573\n1.00s user 0.51s system 95% cpu 1.587 total\n<\/pre>\n<p>\u4f5c\u8005\u30d6\u30ed\u30b0\u306b\u3042\u3063\u305f\u3001250M\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u691c\u7d22\u3057\u305f\u4f8b\u3067\u306f\u3001grep\u304c12.261\u79d2\u3001ack\u304c3.750\u79d2\u3001The Silver Searcher(ag)\u304c\u30011.587\u79d2\u3068\u3044\u3046\u5b9f\u884c\u7d50\u679c\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3042\u3089\u3086\u308b\u30d1\u30bf\u30fc\u30f3\u3067ack\u3088\u308a\u9ad8\u901f\u5316\u3069\u3046\u304b\u4e0d\u660e\u3067\u3059\u304c\u3001\u8a66\u3057\u3066\u307f\u308b\u4fa1\u5024\u306f\u3042\u308b\u304b\u3068\u91cd\u3042w\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cThe Silver Searcher\u300d\u306f\u3001grep\u3088\u308a\u901f\u3044ack\u3088\u308a\u3055\u3089\u306b\u9ad8\u901f\u306a\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30bd\u30d5\u30c8(\u4f5c\u8005\u30d6\u30ed\u30b0)\u3002\u4e3b\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5bfe\u8c61\u306b\u3057\u305f\u691c\u7d22\u30bd\u30d5\u30c8\u3067\u3001\u6b21\u306e\u3088\u3046\u306a\u7279\u5fb4\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002 ack\u3088\u308a3\u301c5\u500d\u9ad8\u901f\u3002 . [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":11091,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[816,352,1237],"class_list":["post-11092","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-ack","tag-grep","tag-the-silver-searcher"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/11092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=11092"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/11092\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/11091"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=11092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=11092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=11092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}