{"version":"1.0","title":"variable in awk","url":"https://www.shigemk2.com/entry/2018/04/12/variable_in_awk","width":"100%","published":"2018-04-12 20:47:44","height":"190","author_url":"https://blog.hatena.ne.jp/shigemk2/","blog_title":"by shigemk2","type":"rich","author_name":"shigemk2","categories":["Linux"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2018%2F04%2F12%2Fvariable_in_awk\" title=\"variable in awk - 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>","provider_url":"https://hatena.blog","description":"variable in awk -v\u3067awk\u5185\u3067\u3060\u3051\u4f7f\u3048\u308b\u5909\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3002\u5fdc\u7528\u6280\u3068\u3057\u3066\u3001\u74b0\u5883\u5909\u6570\u3092\u7a81\u3063\u8fbc\u3080\u3053\u3068\u3082\u53ef\u80fd\u3002 awk -F',' -v name=\"$variable\" '{print name $1}' \u3042\u3068\u601d\u3063\u305f\u3051\u3069\u3001cheat awk\u306e-v\u306e\u4f7f\u3044\u65b9\u5fae\u5999\u306b\u5909\u3002 https://github.com/chrisallenlane/cheat/blob/master/cheat/cheatsheets/awk#L7-L8","provider_name":"Hatena Blog","image_url":null,"blog_url":"https://www.shigemk2.com/"}