{"id":56434,"date":"2018-01-18T14:50:03","date_gmt":"2018-01-18T05:50:03","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=56434"},"modified":"2018-01-20T08:44:00","modified_gmt":"2018-01-19T23:44:00","slug":"ack","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/ack\/","title":{"rendered":"ack - ag\u3084ripgrep\u3092\u8d85\u3048\u308b\u8d85\u9ad8\u901f\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30c4\u30fc\u30eb"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/01\/Is_20180118_135320.jpg\" alt=\"S 20180118 135320\" title=\"s_20180118_135320.jpg\" border=\"0\" width=\"904\" height=\"680\" \/><\/p>\n<p>\u958b\u767a\u8005\u306a\u3089\u3070\u8ab0\u3082\u304c\u3001\u6307\u5b9a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u542b\u307e\u308c\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u3056\u3063\u304f\u308a\u300cgrep\u300d\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u4e8b\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u53e4\u5178\u7684\u306a\u65b9\u6cd5\u3067\u306f\u300cgrep -r\u300d\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6700\u8fd1\u306f<a href=\"https:\/\/softantenna.com\/blog\/software\/the-silver-searcher\/\">The Silver Searcher(ag)<\/a>\u3084\u3001<a href=\"https:\/\/softantenna.com\/blog\/review\/ripgrep\/\">ripgrep<\/a>\u306a\u3069\u5c02\u7528\u306e\u9ad8\u901f\u691c\u7d22\u30c4\u30fc\u30eb\u304c\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/beyondgrep.com\/\">ack<\/a>\u300d\u3082\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u30d4\u30e5\u30a2Perl 5\u88fd\u306e\u30c4\u30fc\u30eb\u3067\u30dd\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u304c\u9ad8\u304f\u3001Perl\u306e\u5f37\u529b\u306a\u6b63\u898f\u8868\u73fe\u304c\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u7279\u5fb4\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<ul>\n<li>\u3068\u3066\u3082\u9ad8\u901f: \u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u691c\u7d22\u3067\u304d\u308b\u306e\u3067\u901f\u3044<\/li>\n<li>\u3088\u308a\u826f\u3044\u691c\u7d22: \u30c7\u30d5\u30a9\u30eb\u30c8\u3067Subversion\u3084Git\u306a\u3069\u306e\u7ba1\u7406\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u3092\u9664\u5916<\/li>\n<li>\u30b3\u30fc\u30c9\u691c\u7d22\u7528: \u6c4e\u7528\u306egrep\u306b\u6bd4\u3079ack\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5c02\u7528\u306a\u306e\u3067\u5c11\u306a\u3044\u30bf\u30a4\u30d7\u3067\u5229\u7528\u3067\u304d\u308b<\/li>\n<li>\u9ad8\u3044\u30dd\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3: \u30d4\u30e5\u30a2Perl\u88fd\u306a\u306e\u3067Windows\u3067\u3082\u5909\u66f4\u306a\u3057\u306b\u52d5\u4f5c<\/li>\n<li>\u7121\u6599\u304b\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9: 100%\u7121\u6599\u3067\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9(Artistic License v2.0\u63a1\u7528)<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>ack\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>ack\u306fPerl\u306ePAN\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001Perl\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5358\u4f53\u306e\u5b9f\u884c\u53ef\u80fd\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u3057\u3066\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3001\u4f8b\u3048\u3070Mac\u306eHomebrew\u74b0\u5883\u3067\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>brew install ack<\/pre>\n<p>\u4f8b\u3048\u3070\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u304b\u3089\"rails\"\u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3057\u305f\u3044\u5834\u5408\u3001\u6b21\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>ack rails<\/pre>\n<p>\u8a72\u5f53\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u3001\u4e00\u81f4\u90e8\u5206\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/01\/Is_20180118_135603.jpg\" alt=\"S 20180118 135603\" title=\"s_20180118_135603.jpg\" border=\"0\" width=\"882\" height=\"609\" \/><\/p>\n<p>\u691c\u7d22\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7d5e\u308a\u8fbc\u3080\u3053\u3068\u3067\u3055\u3089\u306b\u9ad8\u901f\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002Ruby\u95a2\u9023\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3060\u3051\u3092\u691c\u7d22\u3057\u305f\u3044\u5834\u5408\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\"--ruby\"\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>ack -ruby rails<\/pre>\n<p>\"--ruby\"\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001.rb .rhtml .rjs .rxml .erb .rake .spec\u3068\u3044\u3063\u305f\u62e1\u5f35\u5b50\u3092\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u306e\u307b\u304b\u3001Rakefile\u3084\u5148\u982d\u884c\u304c\/^#!.*\\bruby\/\u306b\u30de\u30c3\u30c1\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u591a\u6570\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u5225\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u304c\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u3066\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u8a73\u7d30\u306f<a href=\"https:\/\/beyondgrep.com\/documentation\/\">ack's file types<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u5229\u7528\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3084\u5f15\u6570\u306f\u300cack\u300d\u3068\u6253\u3061\u8fbc\u3081\u3070\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/01\/Is_20180118_135624.jpg\" alt=\"S 20180118 135624\" title=\"s_20180118_135624.jpg\" border=\"0\" width=\"896\" height=\"621\" \/><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>ack\u306fPerl\u88fd\u306e\u9ad8\u901f\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30c4\u30fc\u30eb\u3067\u3059\u3002ack\u3068ag\u3001git-grep\u3001GNU gpre\u3001ripgrep\u3092\u6bd4\u8f03\u3057\u305f\u3001<a href=\"https:\/\/beyondgrep.com\/feature-comparison\/\">\u6a5f\u80fd\u6bd4\u8f03\u8868<\/a>\u3082\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3053\u308c\u3089\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u65b9\u306f\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u767a\u8005\u306a\u3089\u3070\u8ab0\u3082\u304c\u3001\u6307\u5b9a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u542b\u307e\u308c\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u3056\u3063\u304f\u308a\u300cgrep\u300d\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u4e8b\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u53e4\u5178\u7684\u306a\u65b9\u6cd5\u3067\u306f\u300cgrep -r\u300d\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6700\u8fd1\u306fThe Silver Searcher(ag)\u3084 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":56474,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[816,634,2848],"class_list":["post-56434","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-ack","tag-search","tag-tools"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/56434","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=56434"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/56434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/56474"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=56434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=56434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=56434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}