<?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: script needed to compress log files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095760#M443230</link>
    <description>assuming directory is /mydir&lt;BR /&gt;&lt;BR /&gt;find /mydir -size +10485760c -exec compress {} \;&lt;BR /&gt;&lt;BR /&gt;Of course if there are files in a sub-directory of mydir of &amp;gt;10MB they would get compressed too with this code, so don't use if you have subdirs containing stuff you don't want compressed.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Tue, 04 Mar 2008 12:10:44 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2008-03-04T12:10:44Z</dc:date>
    <item>
      <title>script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095758#M443228</link>
      <description>i am having 200 log files in a directory i want to compress the log files which are having size more than 10 mb, help me to have a script</description>
      <pubDate>Tue, 04 Mar 2008 11:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095758#M443228</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-03-04T11:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095759#M443229</link>
      <description>Something like this:&lt;BR /&gt;&lt;BR /&gt;find /log_directory -size +10000000c -exec compress {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 04 Mar 2008 12:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095759#M443229</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-03-04T12:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095760#M443230</link>
      <description>assuming directory is /mydir&lt;BR /&gt;&lt;BR /&gt;find /mydir -size +10485760c -exec compress {} \;&lt;BR /&gt;&lt;BR /&gt;Of course if there are files in a sub-directory of mydir of &amp;gt;10MB they would get compressed too with this code, so don't use if you have subdirs containing stuff you don't want compressed.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 04 Mar 2008 12:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095760#M443230</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2008-03-04T12:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095761#M443231</link>
      <description>Why would you care about the size, just use:&lt;BR /&gt;$ gzip !(*.gz)&lt;BR /&gt;&lt;BR /&gt;gzips all that aren't gzipped.</description>
      <pubDate>Tue, 04 Mar 2008 12:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095761#M443231</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-04T12:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095762#M443232</link>
      <description>thanks it worked out</description>
      <pubDate>Tue, 04 Mar 2008 12:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095762#M443232</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-03-04T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: script needed to compress log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095763#M443233</link>
      <description>find /mydir -size +10485760c -exec compress {} \;&lt;BR /&gt;&lt;BR /&gt;this worked out. as i want to rescue files less than 10 mb. it necessary to check the size</description>
      <pubDate>Tue, 04 Mar 2008 12:48:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed-to-compress-log-files/m-p/5095763#M443233</guid>
      <dc:creator>kingkhan</dc:creator>
      <dc:date>2008-03-04T12:48:53Z</dc:date>
    </item>
  </channel>
</rss>

