
{"id":8656,"date":"2013-07-10T13:22:58","date_gmt":"2013-07-10T13:22:58","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8656"},"modified":"2013-07-10T13:22:58","modified_gmt":"2013-07-10T13:22:58","slug":"head-more-on-output-of-first-part-of-files","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/07\/10\/head-more-on-output-of-first-part-of-files\/","title":{"rendered":"head &#8211; output the first part of files"},"content":{"rendered":"<h2><u>commandline session<\/u><\/h2>\n<pre>\n$cat bash.txt\nhack\nhacker\n$head bash.txt\nhack\nhacker\n$head -n 1 bash.txt\nhack\n$head -n 2 bash.txt\nhack\nhacker\n$head -n 3 bash.txt\nhack\nhacker\n$head -v -n 1 bash.txt\n==&gt; bash.txt  bash.txt &lt;==\nhack\nhacker\n$\n\n<\/pre>\n<p><a href=\"http:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/head-invocation.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/head-invocation.html<\/a><\/p>\n<pre>\n$ head -n 1 qsort.c\n#include\n$ head -n 2 qsort.c\n#include\n\n$ head -n 3 qsort.c\n#include\n\nvoid quick_sort (int *a, int n) {\n$ head -n 4 qsort.c\n#include\n\nvoid quick_sort (int *a, int n) {\n    if (n  qsort.c &lt;==\n#include\n\nvoid quick_sort (int *a, int n) {\n    if (n  source.c &lt;==\n #include \n\nint\nmain(int argc, char *argv[])\n$ head -n 1 qsort.c source.c\n==&gt; qsort.c &lt;==\n#include\n\n==&gt; source.c &lt;==\n #include \n$ head -n 1 qsort.c -n 2 source.c\n==&gt; qsort.c &lt;==\n#include\n\n\n==&gt; source.c &lt;==\n #include \n\n$ head -n 1 qsort.c -n 5 source.c\n==&gt; qsort.c &lt;==\n#include\n\nvoid quick_sort (int *a, int n) {\n    if (n  source.c &lt;==\n #include \n\nint\nmain(int argc, char *argv[])\n    {\n$ head -n 1 qsort.c  source.c\n==&gt; qsort.c &lt;==\n#include\n\n==&gt; source.c &lt;==\n #include \n$\n\n<\/pre>\n<p><u>SOURCE CODE<\/u><br \/>\n<a href=\"http:\/\/git.savannah.gnu.org\/cgit\/coreutils.git\/tree\/src\/head.c\" target=\"_blank\" rel=\"noopener\">http:\/\/git.savannah.gnu.org\/cgit\/coreutils.git\/tree\/src\/head.c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $cat bash.txt hack hacker $head bash.txt hack hacker $head -n 1 bash.txt hack $head -n 2 bash.txt hack hacker $head -n 3 bash.txt hack hacker $head -v -n 1 bash.txt ==&gt; bash.txt bash.txt &lt;== hack hacker $ http:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/head-invocation.html $ head -n 1 qsort.c #include $ head -n 2 qsort.c #include $ head -n &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/07\/10\/head-more-on-output-of-first-part-of-files\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;head &#8211; output the first part of files&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8656"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8656"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8656\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}