{"blog_title":"(O+P)ut","description":"\u3084\u308a\u305f\u3044\u3053\u3068 \u4ee5\u4e0b\u306e\u3088\u3046\u306aCSV\u30d5\u30a1\u30a4\u30eb\uff08abc.csv\uff09\u304c\u3042\u308a\u305d\u308c\u305e\u308c\u306e\u884c\u306e\u7279\u5b9a\u6587\u5b57\u5217\uff08\u30ab\u30f3\u30de\u6570\uff09\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u305f\u3044\u3002 a,b,c d,e f,g,h,i j,k, \u3064\u307e\u308a\u4e0a\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3057\u305f\u3044\u3002 2 1 3 2 \u74b0\u5883\u60c5\u5831 $ bash --version GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) \u3084\u308a\u65b9 #!/bin/bash while read line do echo $line | awk 'BEGIN{FS=\",\"} {n+=NF} END{print n-1}' done < ./abc.csv \u2026","published":"2020-03-15 15:28:32","author_url":"https://blog.hatena.ne.jp/mtiit/","provider_name":"Hatena Blog","type":"rich","blog_url":"https://www.mtioutput.com/","height":"190","title":"\u3010Bash\u3011Linux\u3067\u5404\u884c\u306b\u6307\u5b9a\u306e\u5358\u8a9e\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u306e\u304b\u3092\u30ab\u30a6\u30f3\u30c8","provider_url":"https://hatena.blog","version":"1.0","author_name":"mtiit","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fcount-word-bash\" title=\"\u3010Bash\u3011Linux\u3067\u5404\u884c\u306b\u6307\u5b9a\u306e\u5358\u8a9e\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u306e\u304b\u3092\u30ab\u30a6\u30f3\u30c8 - (O+P)ut\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20190708/20190708105146.png","categories":["UNIX","UNIX-Linux"],"url":"https://www.mtioutput.com/entry/count-word-bash","width":"100%"}