{"id":16,"date":"2011-11-14T00:46:19","date_gmt":"2011-11-14T00:46:19","guid":{"rendered":"http:\/\/technese.com\/?p=16"},"modified":"2012-05-20T00:46:49","modified_gmt":"2012-05-20T00:46:49","slug":"using-awk-to-print-columns-from-a-file","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2011\/11\/14\/using-awk-to-print-columns-from-a-file\/","title":{"rendered":"using awk to print columns from a file"},"content":{"rendered":"<p>1st column<\/p>\n<pre><code>$ awk '{ print $1 }' &lt; file&gt; newfile <\/code><\/pre>\n<p>2nd column<\/p>\n<pre><code>$ awk '{ print $2 }' &lt; file&gt; newfile <\/code><\/pre>\n<p>nth column<\/p>\n<pre><code>$ awk '{ print $n }' &lt; file&gt; newfile <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1st column $ awk &#8216;{ print $1 }&#8217; &lt; file&gt; newfile 2nd column $ awk &#8216;{ print $2 }&#8217; &lt; file&gt; newfile nth column $ awk &#8216;{ print $n }&#8217; &lt; file&gt; newfile<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-database","category-linux"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":3,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/16\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}