<?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: tail limit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597662#M232403</link>
    <description>To my knowledge tail gets you upto a max of 20 kilobytes of data from end of file irrespective of number of lines.&lt;BR /&gt;&lt;BR /&gt;So if the bytes used by last 10000 of the file is less than 20Kb, then the command will fetch you all 10000 lines or else just the last 20kb of data.&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Aug 2005 14:18:39 GMT</pubDate>
    <dc:creator>Srini Jay</dc:creator>
    <dc:date>2005-08-05T14:18:39Z</dc:date>
    <item>
      <title>tail limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597661#M232402</link>
      <description>Has anyone had a problem with not being able&lt;BR /&gt;to tail a set number of lines.&lt;BR /&gt;&lt;BR /&gt;tail -10000 &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597661#M232402</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2005-08-05T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: tail limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597662#M232403</link>
      <description>To my knowledge tail gets you upto a max of 20 kilobytes of data from end of file irrespective of number of lines.&lt;BR /&gt;&lt;BR /&gt;So if the bytes used by last 10000 of the file is less than 20Kb, then the command will fetch you all 10000 lines or else just the last 20kb of data.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597662#M232403</guid>
      <dc:creator>Srini Jay</dc:creator>
      <dc:date>2005-08-05T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: tail limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597663#M232404</link>
      <description>when working with files with huge number of lines, it is always better to use some sed magic.&lt;BR /&gt;&lt;BR /&gt;instead of &lt;BR /&gt;&lt;BR /&gt;tail -10000&lt;BR /&gt;&lt;BR /&gt;file=whatever&lt;BR /&gt;fileLEN=`cat $file|wc -l`&lt;BR /&gt;(( trim_from_top=$fileLEN-10000 ))&lt;BR /&gt;if [ $trim_from_top -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;sed -e "1,${trim_from_top}d" $file &amp;gt;tail1000.out&lt;BR /&gt;else&lt;BR /&gt;echo "Your file does not have 10000 lines in it"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think this script is self explanatory.</description>
      <pubDate>Fri, 05 Aug 2005 17:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597663#M232404</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-05T17:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: tail limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597664#M232405</link>
      <description>Under 11.11, there is a tail(1) patch which addresses this problem: PHCO_27138 (most current, 3 star rating).&lt;BR /&gt;&lt;BR /&gt;Marlou&lt;BR /&gt;&lt;BR /&gt;Part of readme text:&lt;BR /&gt;Symptom:&lt;BR /&gt; tail(1) command does not display more than 20 kilo bytes relative to the end of file.&lt;BR /&gt;&lt;BR /&gt;Defect Description: &lt;BR /&gt;The number of line in the output of the tail(1) command is limited by the 20KB buffer size.&lt;BR /&gt; For example:&lt;BR /&gt; $ ll Filename&lt;BR /&gt; -r--r--r-- 1 bsanjay uxdev 40098 Nov 1 17:37 Filename&lt;BR /&gt; $ /usr/bin/tail -c 30000 Filename | wc -c&lt;BR /&gt; 20480&lt;BR /&gt; $ cat Filename | /usr/bin/tail -c 30000 Filename | wc -c&lt;BR /&gt; 20480&lt;BR /&gt;&lt;BR /&gt; Resolution:&lt;BR /&gt; The design of the tail(1) command is modified. The following are the new features available with this patch:&lt;BR /&gt;  - When the input is not a pipe, there is no limit on the output from tail(1). Even large files(&amp;gt;2GB) can be used as input to tail(1) command. In otherwords, all options to tail(-c, -n, -b) take a value greater than 2GB.&lt;BR /&gt;    For example:&lt;BR /&gt; $ ll Filename&lt;BR /&gt; -r--r--r-- 1 bsanjay uxdev 2150000001 Nov 1 17:37 Filename&lt;BR /&gt; $ /usr/bin/tail -c 2150000000 Filename | wc -c&lt;BR /&gt; 2150000000&lt;BR /&gt;&lt;BR /&gt;  - When the input to tail(1) is through a pipe, the new tail(1) command uses dynamically allocated buffers. Because of  dynamic memory allocation, the output of tail(1) is limited to process limits. This limit is much higher than the old 20 KB limit.&lt;BR /&gt;    For example:&lt;BR /&gt; $ ll Filename&lt;BR /&gt; -r--r--r-- 1 bsanjay uxdev 2000000 Nov 1 17:37 Filename&lt;BR /&gt; $ cat Filename | /usr/bin/tail -c 1000000 | wc -c&lt;BR /&gt; 1000000&lt;BR /&gt;&lt;BR /&gt; Note: If the output from the above example is less than the expected output, it is an indication that tail(1) is unable allocate more memory and the process limit is reached.</description>
      <pubDate>Tue, 16 Aug 2005 17:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-limit/m-p/3597664#M232405</guid>
      <dc:creator>Marlou Everson</dc:creator>
      <dc:date>2005-08-16T17:45:42Z</dc:date>
    </item>
  </channel>
</rss>

