{"title":"\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30b9","author_url":"https://blog.hatena.ne.jp/Rocco/","width":"100%","categories":["Netnews"],"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/R/Rocco/20071005/20071005231714.png","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frocco.hatenadiary.org%2Fentry%2F20071130%2Fp11\" title=\"\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30b9 - \u65e5\u672c GNU AWK \u30e6\u30fc\u30b6\u30fc\u4f1a 0.2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u65e5\u672c GNU AWK \u30e6\u30fc\u30b6\u30fc\u4f1a 0.2","description":"File parsing 10 abc 20 abcc 30 abcd 40 xycz 42 wxy 5 abc 20 abcd 30 abcc\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u3001\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002 \"abc\" - 10 \"abcc\" - 20 \"abcd\" - 30 ...\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067 \"abc\" 10 - 5 = \"abc\" 5 \"abcc\" 20 - 30 = \"abcc\" -10\u306e\u3088\u3046\u306b\u3057\u305f\u3044\u305d\u3046\u3067\u3059\u3002\u56de\u7b54\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002 awk '{a[$2]=(a[$2]==\"\" ? $1 : a[$2] - $1)} END{for (i in a) print i,a[i] } { \u2026","published":"2007-11-30 00:00:10","provider_name":"Hatena Blog","author_name":"Rocco","provider_url":"https://hatena.blog","blog_url":"https://rocco.hatenadiary.org/","height":"190","url":"https://rocco.hatenadiary.org/entry/20071130/p11","type":"rich"}