<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bug/Limitation in tail ?? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929205#M104963</link>
    <description>It is a pretty vanilla system and up to date patch bundle wise...&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;&amp;gt; whence tail&lt;BR /&gt;/usr/bin/tail&lt;BR /&gt;&amp;gt; which tail&lt;BR /&gt;/usr/bin/tail&lt;BR /&gt;&amp;gt; what `whence tail`&lt;BR /&gt;/usr/bin/tail:&lt;BR /&gt;         $Revision: 82.2 $</description>
    <pubDate>Mon, 26 Sep 2005 23:03:25 GMT</pubDate>
    <dc:creator>Daavid Turnbull</dc:creator>
    <dc:date>2005-09-26T23:03:25Z</dc:date>
    <item>
      <title>Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929203#M104961</link>
      <description>I want to grab the last "number" of lines of a text file.  The file is moderately large and between 100 and 200 columns wide.&lt;BR /&gt;&lt;BR /&gt;In this particular instance it is always return me just 81 lines, the first of which is incomplete (missing the start of the line).&lt;BR /&gt;&lt;BR /&gt;Using wc to summarise here is a copy of my shell window:&lt;BR /&gt;______________&lt;BR /&gt;&lt;BR /&gt;&amp;gt; wc ReportCalls.tmp.5872.tmp&lt;BR /&gt;37758 730646 9059587 ReportCalls.tmp.5872.tmp&lt;BR /&gt;&amp;gt; tail -1200 ReportCalls.tmp.5872.tmp | wc&lt;BR /&gt;81 1727 20480&lt;BR /&gt;______________&lt;BR /&gt;&lt;BR /&gt;Is there a limit of 20K on tail?&lt;BR /&gt;&lt;BR /&gt;Can it be increased?&lt;BR /&gt;&lt;BR /&gt;Is there a way around this?&lt;BR /&gt;&lt;BR /&gt;It is within the context of a Perl script.  doubtless there is a better way to do this using Perl so any hints and suggestions as to how best to do it in Perl would also be appreciated.</description>
      <pubDate>Mon, 26 Sep 2005 22:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929203#M104961</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-09-26T22:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929204#M104962</link>
      <description>whence tail&lt;BR /&gt;which tail&lt;BR /&gt;what tail&lt;BR /&gt;&lt;BR /&gt;Lets get some version information. There may be a patch out there for you.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 26 Sep 2005 23:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929204#M104962</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-26T23:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929205#M104963</link>
      <description>It is a pretty vanilla system and up to date patch bundle wise...&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;&amp;gt; whence tail&lt;BR /&gt;/usr/bin/tail&lt;BR /&gt;&amp;gt; which tail&lt;BR /&gt;/usr/bin/tail&lt;BR /&gt;&amp;gt; what `whence tail`&lt;BR /&gt;/usr/bin/tail:&lt;BR /&gt;         $Revision: 82.2 $</description>
      <pubDate>Mon, 26 Sep 2005 23:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929205#M104963</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-09-26T23:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929206#M104964</link>
      <description>and&lt;BR /&gt;_________&lt;BR /&gt;&lt;BR /&gt;&amp;gt; uname -a&lt;BR /&gt;HP-UX chccm1 B.11.00 U 9000/800 2016741259 unlimited-user license</description>
      <pubDate>Mon, 26 Sep 2005 23:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929206#M104964</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-09-26T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929207#M104965</link>
      <description>grr... it seems to be a limitation.&lt;BR /&gt;&lt;BR /&gt;From the man page:&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; WARNINGS&lt;BR /&gt;      Tails relative to end-of-file are stored in a 20-Kbyte buffer, and&lt;BR /&gt;      thus are limited in length.  Therefore, be wary of the results when&lt;BR /&gt;      piping output from other commands into tail.&lt;BR /&gt;&lt;BR /&gt;__________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I guess I need to use something else.</description>
      <pubDate>Mon, 26 Sep 2005 23:06:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929207#M104965</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-09-26T23:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929208#M104966</link>
      <description>&lt;BR /&gt;Right, you may need to find a better (gnu) tail, or use an alternative for example with awk or perl.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using awk (minimally tested):&lt;BR /&gt;&lt;BR /&gt; awk 'BEGIN{w=3}END{i=NR-w;while (i++&lt;NR&gt;&lt;/NR&gt;&lt;BR /&gt;This sets up a 'circular' array of size 'w' by using the 'mod' operator on the line number, resetting over and over.&lt;BR /&gt;At the end, start a window size back from the current line (NR) and print the saved away lines untill teh last line.&lt;BR /&gt;In the begin teh window size is declare (here w=3). You could use a command line argument, or a command line provid variable instead.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 23:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929208#M104966</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-09-26T23:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929209#M104967</link>
      <description>GNU tail is part of GNU text file processing utilities. You can download from, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Gnu/textutils-2.1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Gnu/textutils-2.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 26 Sep 2005 23:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929209#M104967</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-26T23:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug/Limitation in tail ??</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929210#M104968</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;Your responses are much appreciated.&lt;BR /&gt;&lt;BR /&gt;I ended up reading the file one line at a time and turfing the lines prior to the ones of interest.  In the context of the script in question it is not an unreasonable way of doing it.&lt;BR /&gt;&lt;BR /&gt;There is more than one way to do it ;-)</description>
      <pubDate>Tue, 27 Sep 2005 00:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bug-limitation-in-tail/m-p/4929210#M104968</guid>
      <dc:creator>Daavid Turnbull</dc:creator>
      <dc:date>2005-09-27T00:11:43Z</dc:date>
    </item>
  </channel>
</rss>

