<?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 Trim logfile using i.e. sed. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/trim-logfile-using-i-e-sed/m-p/4228916#M33126</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to delete all lines but the last 500 in a  text log file . At the time of deletion, the number of lines will vary.&lt;BR /&gt;&lt;BR /&gt;  /Joakim</description>
    <pubDate>Mon, 07 Jul 2008 12:42:03 GMT</pubDate>
    <dc:creator>Joakim Brosten</dc:creator>
    <dc:date>2008-07-07T12:42:03Z</dc:date>
    <item>
      <title>Trim logfile using i.e. sed.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trim-logfile-using-i-e-sed/m-p/4228916#M33126</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to delete all lines but the last 500 in a  text log file . At the time of deletion, the number of lines will vary.&lt;BR /&gt;&lt;BR /&gt;  /Joakim</description>
      <pubDate>Mon, 07 Jul 2008 12:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trim-logfile-using-i-e-sed/m-p/4228916#M33126</guid>
      <dc:creator>Joakim Brosten</dc:creator>
      <dc:date>2008-07-07T12:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trim logfile using i.e. sed.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trim-logfile-using-i-e-sed/m-p/4228917#M33127</link>
      <description>hy&lt;BR /&gt;&lt;BR /&gt;with tail you can get the last 500 lines:&lt;BR /&gt;&lt;BR /&gt;tail -500 logfile&lt;BR /&gt;&lt;BR /&gt;so you could always redirect the last 500 lines:&lt;BR /&gt;&lt;BR /&gt;tail -500 logfile &amp;gt;last500.log&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Mon, 07 Jul 2008 13:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trim-logfile-using-i-e-sed/m-p/4228917#M33127</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-07-07T13:41:46Z</dc:date>
    </item>
  </channel>
</rss>

