<?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: how to reduce a large file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778277#M76611</link>
    <description>Translation courtesy of altavista&lt;BR /&gt;&lt;BR /&gt;Just, I have entered to see the answers 4 times and the four times I have assigned points, soon thorn in submit, hope to that it leaves the following screen and I close the explorer, but have observed that when I return to enter, them point do not appear, follows seeming the button to assign them.  I feel it but not what I make bad so that they do not appear.  If me indicais how to do it correctly I return to a to sign them.  To and thanks to all, all the solutions are been worth although I have used the one of cat/dev/nul &amp;gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Aug 2002 07:51:40 GMT</pubDate>
    <dc:creator>Nick Wickens</dc:creator>
    <dc:date>2002-08-02T07:51:40Z</dc:date>
    <item>
      <title>how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778266#M76600</link>
      <description>I have a 55Mg file in oracle (alert_baan.log) and i want to reduce it by supressing the 1000000 first lines.Witch command must i used?&lt;BR /&gt;(Sorry for my english, i hope you'll understand it)</description>
      <pubDate>Fri, 02 Aug 2002 05:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778266#M76600</guid>
      <dc:creator>Ignacio Rodríguez Arrós</dc:creator>
      <dc:date>2002-08-02T05:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778267#M76601</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Copy it to another name and then use &lt;BR /&gt;tail +n 1000001 newfile &amp;gt; oldfile&lt;BR /&gt;rm newfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;see man tail&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel</description>
      <pubDate>Fri, 02 Aug 2002 06:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778267#M76601</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-08-02T06:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778268#M76602</link>
      <description>tail +100000 file &amp;gt; file.new&lt;BR /&gt;mv file.new file&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 06:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778268#M76602</guid>
      <dc:creator>Pierce Byrne_1</dc:creator>
      <dc:date>2002-08-02T06:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778269#M76603</link>
      <description>&lt;BR /&gt;The alert log is constantly being help open/possibly written to so I dont think you want to rm it. Simply null it out by doing;&lt;BR /&gt;cat /dev/null &amp;gt;alert_baan.log&lt;BR /&gt;&lt;BR /&gt;This will make the logfile 0 bytes in size but not remove it so that any running processes using this logfile can still use it.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 06:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778269#M76603</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-02T06:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778270#M76604</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;#tail +n 1000000 file &amp;gt; newfile&lt;BR /&gt;#mv newfile file&lt;BR /&gt;&lt;BR /&gt;should do the job&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 06:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778270#M76604</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-08-02T06:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778271#M76605</link>
      <description>Hiya,&lt;BR /&gt;&lt;BR /&gt;Yes, the commands (as stated above) are:&lt;BR /&gt;&lt;BR /&gt;tail +1000000 alert_baan.log &amp;gt; myfile&lt;BR /&gt;mv myfile alert_baan.log&lt;BR /&gt;&lt;BR /&gt;I would put it in a script so as to minimise the time between commands, otherwise you might overwrite some logs that are added to the end of the original file before you mv the new file over it. &lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 06:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778271#M76605</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2002-08-02T06:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778272#M76606</link>
      <description>This method also works:&lt;BR /&gt;&lt;BR /&gt;# sed -n '1000000,$ p' alert_baan.log &amp;gt; new_file&lt;BR /&gt;# mv new_file alert_baan.log&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kenneth&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 06:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778272#M76606</guid>
      <dc:creator>Kenneth_19</dc:creator>
      <dc:date>2002-08-02T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778273#M76607</link>
      <description>Hi Ignacio,&lt;BR /&gt;&lt;BR /&gt;You can do it by using ed, in order to do it try this:&lt;BR /&gt;echo "1, 1000000 d\nw" | ed alert_baan.log&lt;BR /&gt;&lt;BR /&gt;Hope this helps you,&lt;BR /&gt;&lt;BR /&gt;Justo.&lt;BR /&gt;&lt;BR /&gt;Deber??as adjudicar puntos a las soluciones que te dan, esas son las reglas y recomendaciones del foro y si no lo haces podr??as dejar de obtener ayuda.</description>
      <pubDate>Fri, 02 Aug 2002 06:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778273#M76607</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-08-02T06:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778274#M76608</link>
      <description>split has a line option also, and can be useful for large file operations..&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 02 Aug 2002 06:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778274#M76608</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-08-02T06:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778275#M76609</link>
      <description>Justo, he entrado a ver las respuestas 4 veces y las cuatro veces he asignado puntos, luego pincho en submit, espero a que salga la siguiente pantalla y cierro el explorador, pero he observado que cuando vuelvo a entrar, los punto no aparecen, sigue a pareciendo el boton para asignarlos. Lo siento pero no se lo que hago mal para que no aparezcan. Si me indicais c??mo hacerlo correctamente vuelvo a a signarlos. A Y gracias a todos, todas las soluciones son validas aunque he usado la de cat /dev/nul &amp;gt;</description>
      <pubDate>Fri, 02 Aug 2002 07:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778275#M76609</guid>
      <dc:creator>Ignacio Rodríguez Arrós</dc:creator>
      <dc:date>2002-08-02T07:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778276#M76610</link>
      <description>I use csplit to housekeep log files - Attached is a script I use which maintains only the last few weeks of my aplications log directories. Because the application does not write a regular datestamp in the log I force one by running this everynight at midnight.&lt;BR /&gt;&lt;BR /&gt;ERRORLOG=/opt/ROBIN/log                                                         &lt;BR /&gt;for LOGNAME in $(ls $ERRORLOG | grep rerr)                                      &lt;BR /&gt;do                                                                              &lt;BR /&gt;        date +Logday=%.1j &amp;gt;&amp;gt; $ERRORLOG/$LOGNAME                                 &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;The script attached is then run 30 minutes later.</description>
      <pubDate>Fri, 02 Aug 2002 07:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778276#M76610</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-02T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778277#M76611</link>
      <description>Translation courtesy of altavista&lt;BR /&gt;&lt;BR /&gt;Just, I have entered to see the answers 4 times and the four times I have assigned points, soon thorn in submit, hope to that it leaves the following screen and I close the explorer, but have observed that when I return to enter, them point do not appear, follows seeming the button to assign them.  I feel it but not what I make bad so that they do not appear.  If me indicais how to do it correctly I return to a to sign them.  To and thanks to all, all the solutions are been worth although I have used the one of cat/dev/nul &amp;gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Aug 2002 07:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778277#M76611</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-02T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778278#M76612</link>
      <description>Heres the script that failed to attach earlier (hopefully !)</description>
      <pubDate>Fri, 02 Aug 2002 07:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778278#M76612</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-02T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce a large file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778279#M76613</link>
      <description>Ok third time lucky - heres the script (please please please appear this time !)</description>
      <pubDate>Fri, 02 Aug 2002 08:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-reduce-a-large-file/m-p/2778279#M76613</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-02T08:03:03Z</dc:date>
    </item>
  </channel>
</rss>

