{"id":60511,"date":"2018-06-15T08:20:37","date_gmt":"2018-06-14T23:20:37","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=60511"},"modified":"2018-06-15T08:20:37","modified_gmt":"2018-06-14T23:20:37","slug":"blush","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/blush\/","title":{"rendered":"Blush - \u597d\u307f\u306e\u8272\u3064\u304d\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3067\u304d\u308bgrep\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\/06\/s_20180608_113755.jpg\" alt=\"S 20180608 113755\" title=\"s_20180608_113755.jpg\" border=\"0\" width=\"862\" height=\"564\" \/><\/p>\n<p>\u8907\u6570\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u884c\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u300cgrep\u300d\u3002\u4f7f\u3044\u3084\u3059\u304f\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3057\u3066\u3044\u308bUNIX\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u3064\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/arsham\/blush\">Blush<\/a>\u300d\u306f\u3001\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3057\u305f\u7b87\u6240\u3092\u6307\u5b9a\u306e\u8272\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3067\u304d\u308bgrep\u30c4\u30fc\u30eb\u306e\u4e00\u7a2e\u3067\u3059\u3002\u958b\u767a\u8005Arsham Shirvani\u6c0f\u306b\u3088\u3063\u3066Go\u8a00\u8a9e\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30c4\u30fc\u30eb\u3067\u3001\u8272\u3092\u5229\u7528\u3057\u3066\u4e00\u81f4\u3057\u305f\u7b87\u6240\u3092\u7d20\u65e9\u304f\u8a8d\u8b58\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u306f\u901a\u5e38\u7248grep\u3067\u3082\u300cgrep --color=always\u300d\u3084\u300cgrep --color=auto\u300d\u3092\u4f7f\u7528\u3057\u3066\u4e00\u81f4\u3057\u305f\u7b87\u6240\u3092\u8272\u3092\u5909\u3048\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Blush\u3067\u306f\u3088\u308a\u67d4\u8edf\u306a\u6307\u5b9a\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>Blush\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>\u8a18\u4e8b\u57f7\u7b46\u6642\u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306f\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002go get\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\ngo get github.com\/arsham\/blush\n<\/pre>\n<p>Blush\u306f\u57fa\u672c\u7684\u306b\u306f\u300cblush -\u8272 \u30d1\u30bf\u30fc\u30f3 \u30d5\u30a1\u30a4\u30eb\u300d\u5f62\u5f0f\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\"gem\"\u306b\u4e00\u81f4\u3059\u308b\u7b87\u6240\u3092\u8d64\u8272\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\n$ blush -r gem Gemfile\n<\/pre>\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\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\/06\/s_20180608_113844.jpg\" alt=\"S 20180608 113844\" title=\"s_20180608_113844.jpg\" border=\"0\" width=\"808\" height=\"525\" \/><\/p>\n<p>\u8907\u6570\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3082\u305d\u308c\u305e\u308c\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u8272\u304c\u6307\u5b9a\u53ef\u80fd\u3067\u3059\u3002\"gem\"\u306f\u8d64\u3067\u3001\"rails\"\u306f\u7dd1\u3067\u3001\"spring\"\u306f\u30de\u30bc\u30f3\u30bf\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\n$ blush -r gem -g rails -mg spring Gemfile\n<\/pre>\n<p>\u305d\u308c\u305e\u308c\u306e\u4e00\u81f4\u90e8\u5206\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3055\u308c\u3066\u3044\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\/06\/s_20180608_113928.jpg\" alt=\"S 20180608 113928\" title=\"s_20180608_113928.jpg\" border=\"0\" width=\"812\" height=\"535\" \/><\/p>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3067\u304d\u308b\u8272\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u8272<\/th>\n<th>\u30ed\u30f3\u30b0\u5f15\u6570<\/th>\n<th>\u30b7\u30e7\u30fc\u30c8\u5f15\u6570<\/th>\n<\/tr>\n<tr>\n<td>\u8d64<\/td>\n<td>--red<\/td>\n<td>-r<\/td>\n<\/tr>\n<tr>\n<td>\u7dd1<\/td>\n<td>--green<\/td>\n<td>-g<\/td>\n<\/tr>\n<tr>\n<td>\u9752<\/td>\n<td>--blue<\/td>\n<td>-b<\/td>\n<\/tr>\n<tr>\n<td>\u767d<\/td>\n<td>--white<\/td>\n<td>-w<\/td>\n<\/tr>\n<tr>\n<td>\u9ed2<\/td>\n<td>--black<\/td>\n<td>-bl<\/td>\n<\/tr>\n<tr>\n<td>\u9ec4<\/td>\n<td>--yellow<\/td>\n<td>-yl<\/td>\n<\/tr>\n<tr>\n<td>\u30de\u30bc\u30f3\u30bf<\/td>\n<td>--magenta<\/td>\n<td>-mg<\/td>\n<\/tr>\n<tr>\n<td>\u30b7\u30a2\u30f3<\/td>\n<td>--cyan<\/td>\n<td>-cy<\/td>\n<\/tr>\n<\/table>\n<p>\u305d\u306e\u4ed6RGB\u5f62\u5f0f\u3067\u3001--#1b2, -#1b2\u3084\u3001--#11bb22, -#11bb22\u3068\u3044\u3063\u305f\u8272\u306e\u6307\u5b9a\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u30d1\u30bf\u30fc\u30f3\u90e8\u5206\u306b\u306f\u6b63\u898f\u8868\u73fe\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\n$ blush -b \"^age: [0-9]+\" FILENAME\n<\/pre>\n<p>\u305d\u306e\u4ed6\u3001Blush\u3067\u306f\u8272\u3092\u8868\u793a\u3057\u306a\u3044\"--no-color\"\u30aa\u30d7\u30b7\u30e7\u30f3\u306a\u3069\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>+---------------+----------+------------------------------------------------+\n|    Argument   | Shortcut |                     Notes                      |\n+---------------+----------+------------------------------------------------+\n| --colour      | -C       | Colour, don't drop anything.                   |\n| N\/A           | -i       | Case insensitive matching.                     |\n| N\/A           | -R       | Recursive matching.                            |\n| --no-colour   | N\/A      | Don't colourize matches.                       |\n| --no-color    | N\/A      | Same as --no-colour.                           |\n| --no-filename | -h       | Suppress the prefixing of file names on output.|\n+---------------+----------+------------------------------------------------+\n<\/pre>\n<p>\u8a73\u7d30\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Blush\u3092\u4f7f\u7528\u3059\u308c\u3070\u30de\u30c3\u30c1\u3057\u305f\u7b87\u6240\u306b\u8272\u3092\u3064\u3051\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5927\u91cf\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u6587\u5b57\u5217\u3092\u691c\u7d22\u3057\u3001\u3069\u3053\u304c\u4e00\u81f4\u3057\u305f\u304b\u3092\u3059\u3070\u3084\u304f\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u884c\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u300cgrep\u300d\u3002\u4f7f\u3044\u3084\u3059\u304f\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3057\u3066\u3044\u308bUNIX\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u3064\u3060\u3068\u601d\u3044\u307e\u3059\u3002 \u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300cBlush\u300d\u306f\u3001\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3057\u305f\u7b87 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":60689,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[711,352],"class_list":["post-60511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-go","tag-grep"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/60511","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=60511"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/60511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/60689"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=60511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=60511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=60511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}