{"author_name":"msys1","height":"190","blog_url":"https://msys1.hateblo.jp/","image_url":"https://hbb.afl.rakuten.co.jp/hgb/1595703f.2e53bff9.15957040.056acda6/?me_id=1213310&item_id=17445752&m=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F0941%2F9784797380941.jpg%3F_ex%3D80x80&pc=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F0941%2F9784797380941.jpg%3F_ex%3D128x128&s=128x128&t=picttext","blog_title":"\u53d6\u3063\u624b\u306e\u30b3\u30fc\u30c9","author_url":"https://blog.hatena.ne.jp/msys1/","version":"1.0","width":"100%","url":"https://msys1.hateblo.jp/entry/2017/04/02/020654","provider_url":"https://hatena.blog","type":"rich","title":"linux\u30b3\u30de\u30f3\u30c9 grep \u4f7f\u3044\u65b9","provider_name":"Hatena Blog","categories":["Linux\u30b3\u30de\u30f3\u30c9"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmsys1.hateblo.jp%2Fentry%2F2017%2F04%2F02%2F020654\" title=\"linux\u30b3\u30de\u30f3\u30c9 grep \u4f7f\u3044\u65b9 - \u53d6\u3063\u624b\u306e\u30b3\u30fc\u30c9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-04-02 02:06:54","description":"grep ... \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b \u30fb\u4e3b\u306a\u30aa\u30d7\u30b7\u30e7\u30f3 -i ... \u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306e\u533a\u5225\u3092\u305b\u305a\u306b\u691c\u7d22 -n ... \u884c\u756a\u53f7\u3092\u3064\u3051\u3066\u8868\u793a -e ... \u691c\u7d22\u6761\u4ef6\u3092\u6307\u5b9a\u3059\u308b \u8907\u6570\u500b\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528 \u30fb\u6b63\u898f\u8868\u73fe \u691c\u7d22\u30d1\u30bf\u30fc\u30f3\u3068\u3057\u3066\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3067\u304d\u308b * ... \u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3001\u76f4\u524d\u306e1\u6587\u5b57\u306e0\u56de\u4ee5\u4e0a\u306e\u7e70\u308a\u8fd4\u3057\u306b\u4e00\u81f4 ^ ... \u884c\u306e\u5148\u982d\u3092\u8868\u3059 $ ... \u884c\u306e\u672b\u5c3e\u3092\u8868\u3059 \u30fb\u4f7f\u7528\u4f8b grep ^abcd file ... \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30ebfile\u5185\u3067\u3001\u884c\u982d\u304cabcd\u3067\u3042\u308b\u884c\u3092\u691c\u7d22\u3057\u8868\u793a grep \"hoge\" *.txt grep -n abcd file ... \u30c6\u30ad\u30b9\u30c8\u2026"}