{"id":524,"date":"2018-02-26T21:41:00","date_gmt":"2018-02-26T12:41:00","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=524"},"modified":"2018-02-20T11:42:22","modified_gmt":"2018-02-20T02:42:22","slug":"full-search-with-find-xargs-grep-fgrep","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=524","title":{"rendered":"find + xargs grep + fgrep\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u518d\u5e30\u7684\u306b\u5168\u6587\u691c\u7d22\u3059\u308b"},"content":{"rendered":"<p>\u3053\u308c\u3067\u3067\u304d\u307e\u2026\u305b\u3093\u3067\u3057\u305f\u3002\u3067\u304d\u308b\u306b\u306f\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u51fa\u529b\u304c\u591a\u3059\u304e\u3066\u898b\u3048\u306a\u3044\u3002<\/p>\n<pre><code>find \/mnt\/c\/pg\/autohotkey -type f | xargs grep \"GetKeyState\"\n<\/code><\/pre>\n<p>\u3053\u306e\u5168\u6587\u691c\u7d22\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u3063\u3066\u3001\u3044\u3056\u4f7f\u3063\u3066\u307f\u305f\u3089\u2026<\/p>\n<pre><code>find \/mnt\/c\/pg\/autohotkey -type f | xargs grep \"GetKeyState\"\n\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\/autohotkey.aux.ahk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\/Markdown.ahk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\/music.ahk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\/myautohotkey.ahk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\/Perfect.ahk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\ngrep: \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8.lnk: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\n\n<\/code><\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u3046\u308b\u3055\u3044\u3002\u3069\u3053\u306b\u3042\u308b\u306e\u304b\u308f\u304b\u3063\u305f\u3082\u3093\u3058\u3083\u306a\u3044\u3002<\/p>\n<pre><code>find \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk -type f | xargs grep \"GetKeyState\" | grep \"\u4e00\u81f4\u3057\u307e\u3057\u305f\"\n<\/code><\/pre>\n<p>\u3053\u308c\u3060\u3068\u3001\u8272\u304c\u3064\u304f\u3066\u898b\u3084\u3059\u304f\u306f\u306a\u308b\u3093\u3060\u3051\u3069\u3001\u51fa\u529b\u306f\u5909\u308f\u3089\u306a\u3044\u3002<\/p>\n<p>\u8cea\u554f\u3057\u3066\u307f\u305f\u3002\uff1a<a href=\"https:\/\/teratail.com\/questions\/114266?whotofollow=\">\u3082\u3057\u51fa\u529b\u306b\u3042\u308b\u6587\u5b57\u5217\u3092\u542b\u3080\u306a\u3089\u3001\u305d\u306e\u51fa\u529b\u3092null\u306b\u6e21\u3057\u3066\u6a19\u6e96\u51fa\u529b\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3002<\/a><\/p>\n<p>fgrep\u306a\u308b\u3082\u306e\u304c\u3042\u308b\u3089\u3057\u3044\u3002\u4e00\u56de\u3060\u3051\u805e\u3044\u305f\u3053\u3068\u3042\u308b\u2026<\/p>\n<p><code>|&amp; fgrep -v \"\u542b\u307f\u305f\u304f\u306a\u3044\u6587\u5b57\u5217\"<\/code><\/p>\n<p>grep\u3067\u3082\u3001-v\u3060\u3068\u542b\u307e\u306a\u3044\u5834\u5408\u306b\u306a\u308a\u307e\u3059\u3002fgrep\u3082\u540c\u3058\u306a\u306e\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u306d\u3002fgrep\u304c\u306a\u3093\u306a\u306e\u304b\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3067\u3059\u304c\u3002<\/p>\n<p>\u3067\u306f\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<pre><code>yuis@DESKTOP-UHU8FSH:\/mnt\/c\/pg\/zenkaku_henkan$ find \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk -type f | xargs grep \"GetKeyState\" |&amp; fgrep -v \"\u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\"\n\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30b3\u30f3\u30d1\u30a4\u30eb\/fn1-12.exe \u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\n\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30b3\u30f3\u30d1\u30a4\u30eb\/lifehack.exe \u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\n\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30b3\u30f3\u30d1\u30a4\u30eb\/Perfect.exe \u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\n\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30b3\u30f3\u30d1\u30a4\u30eb\/\u30af\u30ea\u30c3\u30af\u9023\u6253.exe \u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\n\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30b3\u30f3\u30d1\u30a4\u30eb\/\u30de\u30a6\u30b9\u64cd\u4f5c.exe \u306b\u4e00\u81f4\u3057\u307e\u3057\u305f\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:         GetKeyState,state,LButton\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:         GetKeyState,state,RButton\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:    wpalam  :=GetKeyState(\"LButton\")     | GetKeyState(\"RButton\") &lt;&lt;1\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:            | GetKeyState(\"Shift\")   &lt;&lt;2 | GetKeyState(\"Ctrl\")    &lt;&lt;3\n<\/code><\/pre>\n<p>\u3061\u3083\u3093\u3068\u307b\u3057\u3044\u60c5\u5831\u3060\u3051\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u7d4c\u7def\u3068\u3057\u3066\u306f\u3001\u524d<code>GetKeyState<\/code>\u3092\u4f7f\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3001\u305d\u308c\u3092\u53c2\u8003\u306b\u3057\u305f\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u898b\u3064\u304b\u3089\u306a\u3044\u2026\u305d\u3053\u3067\u5168\u6587\u691c\u7d22\u3057\u3088\u3046\u304b\u3001\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u3053\u308c\u3060\u3068\u307e\u3060\u60c5\u5831\u304c\u591a\u3044\u3002<\/p>\n<p>exe\u30d5\u30a1\u30a4\u30eb\u3068\u304bbin\u30d5\u30a1\u30a4\u30eb\u3068\u304b\u3082\u6df7\u3058\u3063\u3061\u3083\u3063\u3066\u308b\u3057\u3002<\/p>\n<p>\u81ea\u5206\u304c\u66f8\u3044\u305f\u3082\u306e\u306f\u3001<code>.ahk<\/code>\u3060\u3051\u3067\u3001\u63a2\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3082\u78ba\u5b9f\u306bahk\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u306e\u3067\u3001\u3053\u3053\u306f\u3082\u3046\u3072\u3068\u5de5\u592b\u3002<\/p>\n<pre><code>yuis@DESKTOP-UHU8FSH:\/mnt\/c\/pg\/zenkaku_henkan$ find \/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk -type f | xargs grep \"GetKeyState\" |&amp; fgrep -v \"\u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093\" |&amp; fgrep \".ahk\"\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:         GetKeyState,state,LButton\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:         GetKeyState,state,RButton\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:    wpalam  :=GetKeyState(\"LButton\")     | GetKeyState(\"RButton\") &lt;&lt;1\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:            | GetKeyState(\"Shift\")   &lt;&lt;2 | GetKeyState(\"Ctrl\")    &lt;&lt;3\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:            | GetKeyState(\"MButton\") &lt;&lt;4 | GetKeyState(\"XButton1\")&lt;&lt;5\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/WheelScroll.ahk:            | GetKeyState(\"XButton2\")&lt;&lt;6\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/2017_05_07_ahk\/ahk\/temp-auto.ahk:;    If GetKeyState(\"Shift\",\"P\")\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:            GetKeyState,state,LButton\n\/mnt\/f\/__HDD_BACKUP__\/usb_backup\/ahk\/ahk\u30c6\u30f3\u30d7\u30ec\/021\/AutoScroll.ahk:            GetKeyState,state,RButton\n<\/code><\/pre>\n<p>\u5b8c\u74a7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u3067\u3067\u304d\u307e\u2026\u305b\u3093\u3067\u3057\u305f\u3002\u3067\u304d\u308b\u306b\u306f\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u51fa\u529b\u304c\u591a\u3059\u304e\u3066\u898b\u3048\u306a\u3044\u3002 find \/mnt\/c\/pg\/a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-8s","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/524"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":0,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}