{"author_name":"shammer","height":"190","blog_title":"Shammer's Philosophy","version":"1.0","image_url":null,"url":"https://shammerism.hatenadiary.com/entry/20140814/p1","blog_url":"https://shammerism.hatenadiary.com/","author_url":"https://blog.hatena.ne.jp/shammer/","provider_name":"Hatena Blog","title":"AWK NR Sample Script","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshammerism.hatenadiary.com%2Fentry%2F20140814%2Fp1\" title=\"AWK NR Sample Script - Shammer&#39;s Philosophy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["AWK"],"provider_url":"https://hatena.blog","width":"100%","type":"rich","description":"I wrote about AWK NR in this article, so today I translate this one liner awk command to script. It is below. #!/usr/bin/awk -f { for(i=6;i<=NF;i++){ printf \"%s \", $i; } printf \"\\n\"; } Here is a log that executed above script. $ echo \"aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk\" > test.txt $ echo \"a\u2026","published":"2014-08-14 00:00:00"}