{"blog_title":"moro\u306e\u65e5\u8a18","published":"2007-02-01 10:18:33","description":"\u30de\u30eb\u30c1\u30ea\u30f3\u30ac\u30eb\u306a\u30da\u30fc\u30b8\u30e3 lv \u306f\u300121\u4e16\u7d00\u3060\u3068\u3044\u3046\u306e\u306b terminal \u5185\u3067\u751f\u304d\u3066\u3044\u308b\u7686\u69d8\u306b\u7f6e\u304b\u308c\u307e\u3057\u3066\u306f\u65e2\u306b\u3054\u5229\u7528\u4e2d\u306e\u3053\u3068\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306b\u4ed8\u3044\u3066\u304f\u308b lgrep \u3082\u4fbf\u5229\u3067\u3059\u3002\u7279\u306b Mac OS X \u3060\u3068 UTF-8 \u306a\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u306e\u3067\u3001SJIS \u306e\u6587\u5b57\u5217\u3092 grep \u3059\u308b\u3068\u304d\u306b $ grep `echo \"\u65e5\u672c\u8a9e\u6587\u5b57\u5217\" | iconv -f utf-8 -t cp932` *.txt\u3068\u304b\u3084\u3063\u3066\u305f\u306e\u304c\u3001\u96e3\u3057\u3044\u3053\u3068\u306f\u4f55\u3082\u8003\u3048\u305a\u306b $ lgrep \"\u65e5\u672c\u8a9e\u6587\u5b57\u5217\" *.txt\u3067\u3059\u3080\u3068\u3044\u3046\u3002\u8457\u3057\u304f\u697d\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u304a\u3059\u3059\u3081\u3002\u5ff5\u306e\u305f\u3081\u6355\u6349\u3057\u3066\u304a\u304f\u3068\u3001\u691c\u7d22\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u9069\u5b9c\u5909\u63db\u3057\u306a\u304c\u2026","image_url":null,"type":"rich","provider_url":"https://hatena.blog","height":"190","url":"https://moro.hatenadiary.org/entry/20070201/1170292713","author_url":"https://blog.hatena.ne.jp/moro/","title":" lgrep \u304c\u306a\u306b\u3052\u306b\u4fbf\u5229","provider_name":"Hatena Blog","blog_url":"https://moro.hatenadiary.org/","author_name":"moro","version":"1.0","width":"100%","categories":["mac"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoro.hatenadiary.org%2Fentry%2F20070201%2F1170292713\" title=\" lgrep \u304c\u306a\u306b\u3052\u306b\u4fbf\u5229 - moro\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}