<?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: gzip compression ratio in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720558#M63065</link>
    <description>Hi William&lt;BR /&gt;&lt;BR /&gt;There is no fixed thumb rul for the compression raio , actually all teh files ahve empty blanks and repetitive patterns which are remved and only the data is compacted . So if you have a file which has lots of blank spaces it will have a btter compression ratio. Man gzip is the way to go about it. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
    <pubDate>Thu, 09 May 2002 14:27:36 GMT</pubDate>
    <dc:creator>MANOJ SRIVASTAVA</dc:creator>
    <dc:date>2002-05-09T14:27:36Z</dc:date>
    <item>
      <title>gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720552#M63059</link>
      <description>Hi, guys. This is my first post, so please be gentle. I'm trying to  add a check into a script I'm writing to determine the size of a file after it has been gzip'd. This is basically just a log rotation script with a smart check to prevent it from filling up the directory I am archiving to. I'm running into problems finding information on the compression ratio. If anyone could point me in the right direction that would be great. Thanks in advance.&lt;BR /&gt;-William</description>
      <pubDate>Thu, 09 May 2002 13:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720552#M63059</guid>
      <dc:creator>William_34</dc:creator>
      <dc:date>2002-05-09T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720553#M63060</link>
      <description>Hi William,&lt;BR /&gt;&lt;BR /&gt;Welcome to the forums!&lt;BR /&gt;&lt;BR /&gt;gzip itself has a -l flag that tells you the compressed size, uncompressed size and ratio of a zipped file. E.g. gzip -l &lt;ZIPPED file=""&gt;&lt;BR /&gt;&lt;BR /&gt;Is this what you want?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/ZIPPED&gt;</description>
      <pubDate>Thu, 09 May 2002 13:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720553#M63060</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-05-09T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720554#M63061</link>
      <description>Hi, try using gzip -v this will tell you give you the percentage reduction.&lt;BR /&gt;&lt;BR /&gt;You can capture this info and use it for your reporting.&lt;BR /&gt;&lt;BR /&gt;example&lt;BR /&gt;&lt;BR /&gt;RESULT=`gzip -v file 2&amp;gt;&amp;amp;1 | cut -d " " -f 2`&lt;BR /&gt;echo Compressed by $RESULT&lt;BR /&gt;&lt;BR /&gt;Fergus</description>
      <pubDate>Thu, 09 May 2002 13:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720554#M63061</guid>
      <dc:creator>Fergus Hayne</dc:creator>
      <dc:date>2002-05-09T13:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720555#M63062</link>
      <description>Hi William:&lt;BR /&gt;&lt;BR /&gt;Warm welcome to the best forums !&lt;BR /&gt;&lt;BR /&gt;# man gzip&lt;BR /&gt;&lt;BR /&gt;This man pages will give you all information you need. Also the -l option gives you the compression ratio.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 09 May 2002 13:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720555#M63062</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-09T13:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720556#M63063</link>
      <description>Hello William,&lt;BR /&gt;&lt;BR /&gt;   In general, most text files will compress by an average of roughly 50%, sometimes much more.&lt;BR /&gt;   "Sparse" files can have a compression ratio over 95%.&lt;BR /&gt;   Binary file data compression ratios are pretty unpredictable and will vary all over the range.&lt;BR /&gt;   Files that are already compressed (mpegs, etc.) will not compress any further and may even increase in size if you attempt it.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Paul</description>
      <pubDate>Thu, 09 May 2002 14:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720556#M63063</guid>
      <dc:creator>Paul R. Dittrich</dc:creator>
      <dc:date>2002-05-09T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720557#M63064</link>
      <description>Thanks for replies. I tried to assign everyone the appropriate points, but keep getting "page not found" errors upon submit. Let me know if you didn't get your points. Ok. What I'm trying to do is get an approximation of the file I'm intending to gzip before I actually gzip. As far as I could tell from the man page for gzip, I didn't see it reference any kind of preview option. So, what I want to do is find out what ratio it reduces the file down to before I compress it. I've ran tests with several files of varying size, but have not been able to find a consistant ratio of compression. Is there a single consistant ratio of compression or is the ratio determined by the actual file size? Thanks in advance.&lt;BR /&gt;-William</description>
      <pubDate>Thu, 09 May 2002 14:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720557#M63064</guid>
      <dc:creator>William_34</dc:creator>
      <dc:date>2002-05-09T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720558#M63065</link>
      <description>Hi William&lt;BR /&gt;&lt;BR /&gt;There is no fixed thumb rul for the compression raio , actually all teh files ahve empty blanks and repetitive patterns which are remved and only the data is compacted . So if you have a file which has lots of blank spaces it will have a btter compression ratio. Man gzip is the way to go about it. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Thu, 09 May 2002 14:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720558#M63065</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-09T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720559#M63066</link>
      <description>The compression ratio achieved depends entirely on the data itself (see the man page).&lt;BR /&gt;&lt;BR /&gt;You could 'preview' the gzip by running the following:&lt;BR /&gt;gzip -c &lt;FILENAME&gt; | wc -c&lt;BR /&gt;This will display the compressed size without requiring any diskspace. gzip is CPU intensive though.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/FILENAME&gt;</description>
      <pubDate>Thu, 09 May 2002 14:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720559#M63066</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-05-09T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: gzip compression ratio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720560#M63067</link>
      <description>John, thank you. You solved my problem. Thanks everyone for all of your responses. Again, let me know if you didn't get your points.&lt;BR /&gt;Thanks,&lt;BR /&gt;William</description>
      <pubDate>Thu, 09 May 2002 14:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzip-compression-ratio/m-p/2720560#M63067</guid>
      <dc:creator>William_34</dc:creator>
      <dc:date>2002-05-09T14:49:18Z</dc:date>
    </item>
  </channel>
</rss>

