<?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 Compress by date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730737#M65338</link>
    <description>I have searched man pages and the forms but I do not understand how I can compress a large number of files by date.&lt;BR /&gt;I would like to compress all files older than 9 months.&lt;BR /&gt;&lt;BR /&gt;Help please:)</description>
    <pubDate>Fri, 24 May 2002 00:37:56 GMT</pubDate>
    <dc:creator>Jason Heisley</dc:creator>
    <dc:date>2002-05-24T00:37:56Z</dc:date>
    <item>
      <title>Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730737#M65338</link>
      <description>I have searched man pages and the forms but I do not understand how I can compress a large number of files by date.&lt;BR /&gt;I would like to compress all files older than 9 months.&lt;BR /&gt;&lt;BR /&gt;Help please:)</description>
      <pubDate>Fri, 24 May 2002 00:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730737#M65338</guid>
      <dc:creator>Jason Heisley</dc:creator>
      <dc:date>2002-05-24T00:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730738#M65339</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could try this. Be aware that you don't want to do all filesystems. Change the number of days to your value.&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/find /myfilesystem -mtime +days | xargs /usr/contrib/bin/gzip&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Fri, 24 May 2002 00:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730738#M65339</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-24T00:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730739#M65340</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;find / -type f -mtime +279 -name '*.dat' -exec gzip {} \; &lt;BR /&gt;&lt;BR /&gt;That will find all regular files (-type f) older than 279 days (-mtime +279) that end with '.dat' (-name '*.dat') and then call gzip on that file. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 24 May 2002 00:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730739#M65340</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-24T00:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730740#M65341</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;yeah - sorry, you certainly don't want to do this from / &lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 24 May 2002 00:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730740#M65341</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-24T00:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730741#M65342</link>
      <description>Jason&lt;BR /&gt;&lt;BR /&gt;Have attached a little word doc that I use for reminders&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 24 May 2002 00:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730741#M65342</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-24T00:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730742#M65343</link>
      <description>I have another example, you may/may-not like it.. (assuming current date)&lt;BR /&gt;&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# touch 200109010001 ref&lt;BR /&gt;==&amp;gt; Create an empty file called "ref" dated Sept 1, 2000.&lt;BR /&gt;2001=yr&lt;BR /&gt;09=month&lt;BR /&gt;01=day&lt;BR /&gt;00=hour&lt;BR /&gt;01=minute&lt;BR /&gt;# cd /data&lt;BR /&gt;# find . -newer /tmp/ref -exec gzip {} \;&lt;BR /&gt;==&amp;gt; Compress all files that are newer than the timestamp on file /tmp/ref.</description>
      <pubDate>Fri, 24 May 2002 01:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730742#M65343</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-24T01:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730743#M65344</link>
      <description>sorry .. Sept 1, 2001 ..</description>
      <pubDate>Fri, 24 May 2002 01:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730743#M65344</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-24T01:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compress by date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730744#M65345</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;you can also use the command compress as well as gzip&lt;BR /&gt;&lt;BR /&gt;find /myfilesystem -mtime +279 -exec compress {} \;  &lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Fri, 24 May 2002 04:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-by-date/m-p/2730744#M65345</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2002-05-24T04:56:12Z</dc:date>
    </item>
  </channel>
</rss>

