<?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 command foo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375110#M196301</link>
    <description>Can tail be modified to output more lines?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Sep 2004 07:23:54 GMT</pubDate>
    <dc:creator>jerry1</dc:creator>
    <dc:date>2004-09-09T07:23:54Z</dc:date>
    <item>
      <title>tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375106#M196297</link>
      <description>Why does tail only tail 703 lines to a file.&lt;BR /&gt;&lt;BR /&gt;If I tail -5000 a file that has 50000 lines &lt;BR /&gt;I get 5000 lines.&lt;BR /&gt;&lt;BR /&gt;If I tail -5000 and redirect &amp;gt; to another&lt;BR /&gt;file name I only get 703 lines.&lt;BR /&gt;&lt;BR /&gt;Does anyone know why?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2004 16:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375106#M196297</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-09-08T16:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375107#M196298</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The 'tail' command actually has a 20K byte buffer, which will limit the actual number of lines you can get from it, depending on the size of your lines.&lt;BR /&gt;&lt;BR /&gt;You might want to use Perl or awk to see if you can get what you need.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2004 16:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375107#M196298</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-09-08T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375108#M196299</link>
      <description>From the 'tail' man page:&lt;BR /&gt;&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;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2004 16:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375108#M196299</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-09-08T16:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375109#M196300</link>
      <description>yes it is a problem of tail buffer size limitation&lt;BR /&gt;regards&lt;BR /&gt;SK</description>
      <pubDate>Wed, 08 Sep 2004 23:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375109#M196300</guid>
      <dc:creator>Sยภเl Kย๓คг</dc:creator>
      <dc:date>2004-09-08T23:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375110#M196301</link>
      <description>Can tail be modified to output more lines?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Sep 2004 07:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375110#M196301</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-09-09T07:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375111#M196302</link>
      <description>Sorry, no.  However you could try something with sed like this:&lt;BR /&gt;&lt;BR /&gt;# print last 10 lines of file (emulates "tail")&lt;BR /&gt; sed -e :a -e '$q;N;11,$D;ba'&lt;BR /&gt;&lt;BR /&gt;Change the "11" to whatever number you're trying to retrieve.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 09 Sep 2004 07:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375111#M196302</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-09-09T07:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375112#M196303</link>
      <description>As said, tail has a limited buffer.. &lt;BR /&gt;awk will be the answer.. its really powerful</description>
      <pubDate>Thu, 09 Sep 2004 09:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375112#M196303</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2004-09-09T09:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375113#M196304</link>
      <description>You can use awk as,&lt;BR /&gt;&lt;BR /&gt;awk '{ if ( NR &amp;gt;= 10 ) print $0 }' file&lt;BR /&gt;&lt;BR /&gt;So that it will print the liens after line number 10 there&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Sep 2004 10:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375113#M196304</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-09T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375114#M196305</link>
      <description>Attachment a shell script, it will be helpful to get less lines on standard ouput and to get files.&lt;BR /&gt;&lt;BR /&gt;Try to create a file as,&lt;BR /&gt;&lt;BR /&gt;vi /usr/bin/less&lt;BR /&gt;&lt;COPY and="" paste="" the="" contents=""&gt;&lt;BR /&gt;&lt;BR /&gt;chmod 755 /usr/bin/less&lt;BR /&gt;&lt;BR /&gt;You can test as,&lt;BR /&gt;&lt;BR /&gt;echo "bye\nfor\nnow" | less 2&lt;BR /&gt;&lt;BR /&gt;It will give &lt;BR /&gt;for&lt;BR /&gt;now there.&lt;BR /&gt;&lt;BR /&gt;You can test the files too as,&lt;BR /&gt;&lt;BR /&gt;less 2 /usr/bin/less&lt;BR /&gt;# Normal end&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;It will be used there. You can edit to make it efficient more.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;-Muthu&lt;BR /&gt;&lt;/COPY&gt;</description>
      <pubDate>Thu, 09 Sep 2004 11:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375114#M196305</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-09T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375115#M196306</link>
      <description>Hi Pete&lt;BR /&gt;&lt;BR /&gt;sed -e :a -e '$q;N;'$cnt',$D;ba'  abc.txt &amp;gt; xyz.txt&lt;BR /&gt;&lt;BR /&gt;Could you please explain me the above statement -- phrase wise.&lt;BR /&gt;&lt;BR /&gt;as early as possible.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Subbu</description>
      <pubDate>Tue, 26 Sep 2006 07:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375115#M196306</guid>
      <dc:creator>subbukns</dc:creator>
      <dc:date>2006-09-26T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375116#M196307</link>
      <description>There is a patch for tail.</description>
      <pubDate>Tue, 26 Sep 2006 08:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375116#M196307</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2006-09-26T08:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: tail command foo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375117#M196308</link>
      <description>The patches are:&lt;BR /&gt; &lt;BR /&gt;11.23 - PHCO_31564&lt;BR /&gt;11.11 - PHCO_27138&lt;BR /&gt;11.00 - none&lt;BR /&gt;10.20 - none&lt;BR /&gt; &lt;BR /&gt;none = no patch, tail is limited to 20K bytes of data (not lines) and cannot be changed.</description>
      <pubDate>Tue, 26 Sep 2006 11:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tail-command-foo/m-p/3375117#M196308</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-26T11:18:29Z</dc:date>
    </item>
  </channel>
</rss>

