{"id":1721,"date":"2004-09-26T10:37:35","date_gmt":"2004-09-26T14:37:35","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=1721"},"modified":"2008-08-03T17:58:40","modified_gmt":"2008-08-03T21:58:40","slug":"the-head-n-debacle","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2004\/09\/26\/the-head-n-debacle\/","title":{"rendered":"The &#8216;head -n&#8217; debacle"},"content":{"rendered":"<p>Unix\/Linux has a handy little tool called <code>head<\/code> that will print the first few lines of a file. Run without options, it&#8217;ll give you the first few lines, but called f&#8217;rintsance <code>head -20<\/code>, will give you the first 20. It&#8217;s worked this way since basically ever.<\/p>\n<p>Now whenever I run it, I get the following smug little message:<\/p>\n<blockquote><p>head: `-<em>N<\/em>&#8216; option is obsolete; use `-n <em>N<\/em>&#8216; since this will be removed in the future<\/p><\/blockquote>\n<p>I don&#8217;t consider myself an old Unix programmer, but I know that there are probably 12 year old scripts of mine working in former employers&#8217; offices far, far away that will need fixing if they ever get rid of the sane old `-<em>N<\/em>&#8216; option. For any sakes, why, man, <em><strong>why\u00c2\u00a0\u00e2\u20ac\u00a6?<\/strong><\/em><\/p>\n<p>The message is also rather ambiguous. Why would I want to use `-n <em>N<\/em>&#8216; if it will be removed in the future? I knew all along that I should stick with `-<em>N<\/em>&#8216;.  <q>The right of the people to keep and bear <code>head<\/code>s, shall not be infringed<\/q>, anyone?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unix\/Linux has a handy little tool called head that will print the first few lines of a file. Run without options, it&#8217;ll give you the first few lines, but called f&#8217;rintsance head -20, will give you the first 20. It&#8217;s worked this way since basically ever. Now whenever I run it, I get the following [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[1348,1131,62,1347],"class_list":["post-1721","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-deprecated","tag-gnu","tag-rant","tag-unix"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-rL","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=1721"}],"version-history":[{"count":1,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/1721\/revisions"}],"predecessor-version":[{"id":3778,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/1721\/revisions\/3778"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=1721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=1721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}