{"type":"rich","published":"2018-09-03 20:57:31","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2018%2F09%2F03%2F205731\" title=\"awk\u306e\u4e2d\u8eab\u3092\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u3057\u3066\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u305b\u305f\u3044 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.shigemk2.com/","width":"100%","author_name":"shigemk2","title":"awk\u306e\u4e2d\u8eab\u3092\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u3057\u3066\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u305b\u305f\u3044","height":"190","author_url":"https://blog.hatena.ne.jp/shigemk2/","version":"1.0","blog_title":"by shigemk2","provider_url":"https://hatena.blog","categories":["Linux"],"image_url":null,"description":"\u305f\u3060\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 awk -F',' '{ if($3 == \"alice\") print $1 > \"test.csv\"}' filename.csv awk\u306e\u4e2d\u8eab\u3092\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u3057\u3066\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 \u3053\u3046\u3084 awk -F',' '{ if($3 == \"alice\") print $1 > \"\"$2\".csv\"}' filename.csv \u306a\u304a\u3001$2 \u306b\u306e\u3063\u3051\u304b\u3089\u7a7a\u767d\u304c\u5165\u3063\u3066\u3044\u308b\u306a\u3069\u3057\u305f\u3089\u3001\u3082\u3046\u3060\u3081\u3067\u3059 https://www.unix.com/shell-programming-and-scripting/55172-awk-print-redirection-variable-file-\u2026","url":"https://www.shigemk2.com/entry/2018/09/03/205731"}