{"id":252,"date":"2009-02-21T20:24:24","date_gmt":"2009-02-21T14:54:24","guid":{"rendered":"http:\/\/brainstorms.in\/?p=252"},"modified":"2009-02-21T20:24:24","modified_gmt":"2009-02-21T14:54:24","slug":"generating-number-sequences-in-shell-scripts","status":"publish","type":"post","link":"https:\/\/brainstorms.in\/?p=252","title":{"rendered":"Generating number sequences in shell  scripts"},"content":{"rendered":"<p>I learned this technique from a fellow participant .<\/p>\n<p>$ yes |nl |head -100 |cut -f1<\/p>\n<p>You can remove the\u00a0 new lines as below.<\/p>\n<p>$\u00a0 yes |nl |head -100 | cut -f1| tr &#8216;\\n&#8217; &#8216;\\t&#8217;<\/p>\n<p>Cool.<\/p>\n<p>Otherwise, my course is progressing well. I wrote a simple file transfer daemon and implemented\u00a0 the client..\u00a0 Now, I have to do the same with pthreads and non blocking calls.\u00a0 We had the first glimpse of kernel programming today when some kernel data structures for process and memory managment was iintroduced. I have to read\u00a0 a lot to get the exact picture.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I learned this technique from a fellow participant . $ yes |nl |head -100 |cut -f1 You can remove the\u00a0 new lines as below. $\u00a0 yes |nl |head -100 | cut -f1| tr &#8216;\\n&#8217; &#8216;\\t&#8217; Cool. Otherwise, my course is progressing well. I wrote a simple file transfer daemon and implemented\u00a0 the client..\u00a0 Now, I&hellip; <a class=\"more-link\" href=\"https:\/\/brainstorms.in\/?p=252\">Continue reading <span class=\"screen-reader-text\">Generating number sequences in shell  scripts<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"_links":{"self":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts\/252"}],"collection":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":0,"href":"https:\/\/brainstorms.in\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brainstorms.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}