{"id":63061,"date":"2018-09-10T09:21:58","date_gmt":"2018-09-10T00:21:58","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=63061"},"modified":"2018-09-10T09:21:58","modified_gmt":"2018-09-10T00:21:58","slug":"the-platinum-searcher","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/the-platinum-searcher\/","title":{"rendered":"The Platinum Searcher - \u65e5\u672c\u8a9e\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u5bfe\u5fdc\u3057\u305fGo\u8a00\u8a9e\u88fd\u306e\u9ad8\u901f\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\/09\/s_20180904_111408.jpg\" alt=\"S 20180904 111408\" title=\"s_20180904_111408.jpg\" border=\"0\" width=\"811\" height=\"609\" \/><\/p>\n<p>\u4e16\u754c\u306b\u306f\u300cgrep -r\u300d\u306b\u306f\u6e80\u8db3\u3067\u304d\u305a\u306b\u958b\u767a\u3055\u308c\u305f\u9ad8\u901f\u691c\u7d22\u30c4\u30fc\u30eb\u304c\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u542b\u307e\u308c\u308b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u9ad8\u901f\u306b\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u6709\u540d\u306aThe Silver Searcher\u306b\u306f\u3001\u691c\u7d22\u5bfe\u8c61\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u307e\u308c\u308b\u65e5\u672c\u8a9e\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u304cUTF-8\u306b\u9650\u5b9a\u3055\u308c\u308b\u3068\u3044\u3046\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/monochromegane\/the_platinum_searcher\">The Platinum Searcher<\/a>\u300d\u306f\u305d\u306e\u3088\u3046\u306a\u5236\u9650\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u4f5c\u6210\u3055\u308c\u305f\u3001Go\u8a00\u8a9e\u88fd\u306e\u9ad8\u901f\u691c\u7d22\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u65e5\u672c\u306e\u958b\u767a\u8005monochromegane\u6c0f\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u3001UTF-8\u306e\u307b\u304bEUC-JP\u3084Shift JIS\u3068\u3044\u3063\u305f\u65e5\u672c\u8a9e\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u5fb4\u304c\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>ack\u306e3\u301c5\u500d\u9ad8\u901f<\/li>\n<li>ag\u3088\u308a\u3082\u9ad8\u901f<\/li>\n<li>.gitignore\u3067\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u3092\u7121\u8996<\/li>\n<li>\u30c9\u30c3\u30c8(.)\u3067\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7121\u8996<\/li>\n<li>UTF-8\u3001EUC-JP\u3001Shift JIS\u306b\u5bfe\u5fdc<\/li>\n<li>macOS\u3001Windows\u3001Linux\u306e\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>The Platinum Searcher\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>macOS\u3067Homebrew\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre> \nbrew install pt\n<\/pre>\n<p>Homebrew\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u307e\u305f\u306f\u4ed6\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001GitHub\u306e<a href=\"https:\/\/github.com\/monochromegane\/the_platinum_searcher\/releases\">\u30ea\u30ea\u30fc\u30b9\u30da\u30fc\u30b8<\/a>\u304b\u3089\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<h2>The Platinum Searcher\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>pt\u306e\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u4f7f\u7528\u65b9\u6cd5\u306f\u300cpt \u30d1\u30bf\u30fc\u30f3\u300d\u3067\u3059\u3002<\/p>\n<pre>\npt bootstrap\n<\/pre>\n<p>\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30ab\u30ec\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u300cbootstrap\u300d\u304c\u542b\u307e\u308c\u308b\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u691c\u7d22\u306b\u30de\u30c3\u30c1\u3057\u305f\u5834\u5408\u3001\u30d1\u30bf\u30fc\u30f3\u304c\u542b\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u3001\u30d1\u30bf\u30fc\u30f3\u304c\u5b9f\u969b\u306b\u30de\u30c3\u30c1\u3057\u305f\u7b87\u6240\u304c\u8272\u3064\u304d\u3067\u30ab\u30e9\u30d5\u30eb\u306b\u51fa\u529b\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\/09\/s_20180904_113320.jpg\" alt=\"S 20180904 113320\" title=\"s_20180904_113320.jpg\" border=\"0\" width=\"838\" height=\"608\" \/><\/p>\n<p>\u300cpt \u30aa\u30d7\u30b7\u30e7\u30f3 \u30d1\u30bf\u30fc\u30f3 \u30d1\u30b9\u300d\u306e\u3088\u3046\u306b\u5404\u7a2e\u30aa\u30d7\u30b7\u30e7\u30f3\u3084\u691c\u7d22\u5bfe\u8c61\u306e\u30d1\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3067\u3059\u3002\u6307\u5b9a\u53ef\u80fd\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u5358\u306b\u300cpt\u300d\u3068\u5b9f\u884c\u3059\u308b\u304b\u3001\u300cpt --help\u300d\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>$ pt\nUsage:\n  pt [OPTIONS] PATTERN [PATH]\n\nApplication Options:\n      --version             Show version\n\nOutput Options:\n      --color               Print color codes in results (default: true)\n      --nocolor             Don't print color codes in results (default: false)\n      --color-line-number=  Color codes for line numbers (default: 1;33)\n      --color-path=         Color codes for path names (default: 1;32)\n      --color-match=        Color codes for result matches (default: 30;43)\n      --group               Print file name at header (default: true)\n      --nogroup             Don't print file name at header (default: false)\n  -0, --null                Separate filenames with null (for 'xargs -0') (default: false)\n      --column              Print column (default: false)\n      --numbers             Print Line number. (default: true)\n  -N, --nonumbers           Omit Line number. (default: false)\n  -A, --after=              Print lines after match\n  -B, --before=             Print lines before match\n  -C, --context=            Print lines before and after match\n  -l, --files-with-matches  Only print filenames that contain matches\n  -c, --count               Only print the number of matching lines for each input file.\n  -o, --output-encode=      Specify output encoding (none, jis, sjis, euc)\n\nSearch Options:\n  -e                        Parse PATTERN as a regular expression (default: false). Accepted syntax\n                            is the same as https:\/\/github.com\/google\/re2\/wiki\/Syntax except from \\C\n  -i, --ignore-case         Match case insensitively\n  -S, --smart-case          Match case insensitively unless PATTERN contains uppercase characters\n  -w, --word-regexp         Only match whole words\n      --ignore=             Ignore files\/directories matching pattern\n      --vcs-ignore=         VCS ignore files (default: .gitignore)\n      --global-gitignore    Use git's global gitignore file for ignore patterns\n      --home-ptignore       Use $Home\/.ptignore file for ignore patterns\n  -U, --skip-vcs-ignores    Don't use VCS ignore file for ignore patterns\n  -g=                       Print filenames matching PATTERN\n  -G, --file-search-regexp= PATTERN Limit search to filenames matching PATTERN\n      --depth=              Search up to NUM directories deep (default: 25)\n  -f, --follow              Follow symlinks\n      --hidden              Search hidden files and directories\n\nHelp Options:\n  -h, --help                Show this help message\n<\/pre>\n<p>\u691c\u7d22\u6642\u306b\u3088\u304f\u6307\u5b9a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u305f\u3044\u5834\u5408\u3001TOML\u5f62\u5f0f\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb($HOME\/.ptconfig.toml\u3084\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306eptconfig.toml)\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5185\u5bb9\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306e\u66f8\u5f0f\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>color = true\ncontext = 3\nignore = [\"dir1\", \"dir2\"]\ncolor-path = \"1;34\"<\/pre>\n<p>\u8272\u8a2d\u5b9a\u3084\u7121\u8996\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u306e\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>The Platinum Searcher\u3092\u5229\u7528\u3059\u308c\u3070\u3001UTF-8\u3060\u3051\u3067\u306f\u306a\u304fEUC-JP\u3084Shift JIS\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u9ad8\u901f\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Go\u8a00\u8a9e\u3067\u4f5c\u3089\u308c\u3066\u3044\u308b\u305f\u3081Unix\u7531\u6765\u306e\u30c4\u30fc\u30eb\u304c\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u4e8b\u304c\u591a\u3044Windows\u74b0\u5883\u3067\u7c21\u5358\u306b\u4f7f\u3048\u308b\u306e\u3082\u9b45\u529b\u7684\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u754c\u306b\u306f\u300cgrep -r\u300d\u306b\u306f\u6e80\u8db3\u3067\u304d\u305a\u306b\u958b\u767a\u3055\u308c\u305f\u9ad8\u901f\u691c\u7d22\u30c4\u30fc\u30eb\u304c\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u3002 \u305d\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u542b\u307e\u308c\u308b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u9ad8\u901f\u306b\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u6709\u540d\u306aT [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":63200,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[634,2848,3302],"class_list":["post-63061","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-search","tag-tools","tag-unix"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/63061","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=63061"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/63061\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/63200"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=63061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=63061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=63061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}