{"id":278,"date":"2014-10-04T17:36:29","date_gmt":"2014-10-04T17:36:29","guid":{"rendered":"http:\/\/192.168.2.32:8082\/?p=278"},"modified":"2014-10-04T17:36:29","modified_gmt":"2014-10-04T17:36:29","slug":"tail","status":"publish","type":"post","link":"https:\/\/www.dev-metal.ch\/?p=278","title":{"rendered":"Tail"},"content":{"rendered":"<p><!--more-->Tail listet die letzten Zeilen eines Files aus.<\/p>\n<h1>Syntax<\/h1>\n<pre class=\"lang:sh decode:true\">tail [+ number] [-l] [-b] [-c] [-r] [-f] [-c number | -n number] [file]<\/pre>\n<table class=\"wiki-table\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th>Parameter<\/th>\n<th>Beschreibung<\/th>\n<\/tr>\n<tr class=\"table-odd\">\n<td style=\"text-align: left;\">+number<\/td>\n<td><\/td>\n<\/tr>\n<tr class=\"table-even\">\n<td style=\"text-align: left;\">-l<\/td>\n<td style=\"text-align: left;\">Units of lines.<\/td>\n<\/tr>\n<tr class=\"table-odd\">\n<td style=\"text-align: left;\">-b<\/td>\n<td style=\"text-align: left;\">Units of blocks.<\/td>\n<\/tr>\n<tr class=\"table-even\">\n<td style=\"text-align: left;\">-c<\/td>\n<td style=\"text-align: left;\">Units of bytes.<\/td>\n<\/tr>\n<tr class=\"table-odd\">\n<td style=\"text-align: left;\">-r<\/td>\n<td style=\"text-align: left;\">Reverse. Copies lines from the specified starting point in the file in reverse order. The default for r is to print the entire file in reverse order.<\/td>\n<\/tr>\n<tr class=\"table-even\">\n<td style=\"text-align: left;\">-f<\/td>\n<td style=\"text-align: left;\">Follow. If the input-file is not a pipe, the program will not terminate after the line of the input-file has been copied, but will enter an endless loop, wherein it sleeps for a second and then attempts to read and copy further records from the input-file. Thus it may be used to monitor the growth of a file that is being written by some other process.<\/td>\n<\/tr>\n<tr class=\"table-odd\">\n<td style=\"text-align: left;\">-c number<\/td>\n<td style=\"text-align: left;\">The number option-argument must be a decimal integer whose sign affects the location in the file, measured in bytes, to begin the copying:<br \/>\n+ Copying starts relative to the beginning of the file.<br \/>\n&#8211; Copying starts relative to the end of the file.<br \/>\nnone Copying starts relative to the end of the file.<br \/>\nThe origin for counting is 1; that is, -c+1 represents the first byte of the file, -c-1 the last.<\/td>\n<\/tr>\n<tr class=\"table-even\">\n<td style=\"text-align: left;\">-n<\/td>\n<td style=\"text-align: left;\">number Equivalent to -c number, except the starting location in the file is measured in lines instead of bytes. The origin for counting is 1; that is, -n+1 represents the first line of the file, -n-1 the last.<\/td>\n<\/tr>\n<tr class=\"table-odd\">\n<td style=\"text-align: left;\">file<\/td>\n<td style=\"text-align: left;\">Name of the file you wish to display<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Beispiel<\/h2>\n<p>Listet die letzten 10 (default) linien aus myfile.txt auf.<\/p>\n<pre class=\"lang:sh decode:true\">tail myfile.txt\r\n<\/pre>\n<p>Listet die letzten 100 Linien aus myfile.txt auf.<\/p>\n<pre class=\"lang:sh decode:true \">tail myfile.txt -n 100\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-linux"],"modified_by":"ralph","_links":{"self":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=278"}],"version-history":[{"count":1,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/278\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}