<?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: Compress files problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057329#M305486</link>
    <description>&lt;!--!*#--&gt;&amp;gt;  -z isn't available in HP-UX. &lt;BR /&gt;&lt;BR /&gt;Well, not with the "tar" supplied with HP-UX.&lt;BR /&gt;GNU "tar" runs on HP-UX, and it offers "-z".&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/" target="_blank"&gt;http://www.gnu.org/software/tar/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] when I gzip it [...]&lt;BR /&gt;&lt;BR /&gt;Using what command?&lt;BR /&gt;&lt;BR /&gt;It's not clear what you want, but the&lt;BR /&gt;suggestion of:&lt;BR /&gt;&lt;BR /&gt;      tar -cvf - . | gzip file.tgz&lt;BR /&gt;&lt;BR /&gt;is probably what you should want.  And it's&lt;BR /&gt;essentially what (GNU) "tar -cfvz file.tgz ."&lt;BR /&gt;does.&lt;BR /&gt;&lt;BR /&gt;This:&lt;BR /&gt;&lt;BR /&gt;find . -exec /bin/tar -zcvf file.tgz {} \;&lt;BR /&gt;&lt;BR /&gt;looks to me as it it will run "tar" for each&lt;BR /&gt;file, which has to be a lame way to do the&lt;BR /&gt;job.</description>
    <pubDate>Tue, 21 Aug 2007 00:45:47 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-08-21T00:45:47Z</dc:date>
    <item>
      <title>Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057326#M305483</link>
      <description>I have a path , there are many many files in it ( over 100K files ) , I want to run tar -zcvf to compress it , when I gzip it , it pop "/usr/bin/gzip: Argument list too long" , when I use the script "find .  -exec /bin/tar -zcvf file.tgz {} \; , the compress process will be start but have stopped when compressed a few files , can advise how can I do the compress process ? thx</description>
      <pubDate>Tue, 21 Aug 2007 00:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057326#M305483</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-08-21T00:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057327#M305484</link>
      <description>&lt;P&gt;-z isn't available in HP-UX. You'll have to pipe the tar output to gzip:&lt;BR /&gt;tar -cvf - . | gzip &amp;gt; file.tgz&lt;BR /&gt;&lt;BR /&gt;(If you want everything under ".", why use find(1)? tar(1) does that just fine.)&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 02:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057327#M305484</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-02T02:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057328#M305485</link>
      <description>Oops, slight typo:&lt;BR /&gt;tar -cvf - . | gzip &amp;gt; file.tgz</description>
      <pubDate>Tue, 21 Aug 2007 00:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057328#M305485</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-21T00:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057329#M305486</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  -z isn't available in HP-UX. &lt;BR /&gt;&lt;BR /&gt;Well, not with the "tar" supplied with HP-UX.&lt;BR /&gt;GNU "tar" runs on HP-UX, and it offers "-z".&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/" target="_blank"&gt;http://www.gnu.org/software/tar/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] when I gzip it [...]&lt;BR /&gt;&lt;BR /&gt;Using what command?&lt;BR /&gt;&lt;BR /&gt;It's not clear what you want, but the&lt;BR /&gt;suggestion of:&lt;BR /&gt;&lt;BR /&gt;      tar -cvf - . | gzip file.tgz&lt;BR /&gt;&lt;BR /&gt;is probably what you should want.  And it's&lt;BR /&gt;essentially what (GNU) "tar -cfvz file.tgz ."&lt;BR /&gt;does.&lt;BR /&gt;&lt;BR /&gt;This:&lt;BR /&gt;&lt;BR /&gt;find . -exec /bin/tar -zcvf file.tgz {} \;&lt;BR /&gt;&lt;BR /&gt;looks to me as it it will run "tar" for each&lt;BR /&gt;file, which has to be a lame way to do the&lt;BR /&gt;job.</description>
      <pubDate>Tue, 21 Aug 2007 00:45:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057329#M305486</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-08-21T00:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057330#M305487</link>
      <description>U can simply do - tar -cvf &lt;FILE-NAME&gt; or go to the folder and do - tar -cvf *.* in the particular path. &lt;BR /&gt;Then gzip the tar file - gzip xyz.tar or&lt;BR /&gt;&lt;BR /&gt;tar -cvf *.* | gzip *.tar&lt;BR /&gt;&lt;BR /&gt;Hope this helps !!!&lt;/FILE-NAME&gt;</description>
      <pubDate>Tue, 21 Aug 2007 04:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057330#M305487</guid>
      <dc:creator>Amit Parui</dc:creator>
      <dc:date>2007-08-21T04:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057331#M305488</link>
      <description>&amp;gt;Hunter_29: go to the folder&lt;BR /&gt;&lt;BR /&gt;(There are no folders on Unix.  ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;tar -cvf *.* in the particular path.&lt;BR /&gt;&lt;BR /&gt;*.* isn't a good pattern for tar, it misses names without ".".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Then gzip the tar file - gzip xyz.tar&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;tar -cvf *.* | gzip *.tar&lt;BR /&gt;&lt;BR /&gt;You forgot the file or "-" and the pipe would need more plumbing/fiddling.</description>
      <pubDate>Tue, 21 Aug 2007 05:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057331#M305488</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-21T05:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057332#M305489</link>
      <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;I use the command tar -cvf - . | gzip &amp;gt; file.tgz , it works fine , I would like to ask one more question , what is the function of - ( the second one ) in this command ? I tried that if not omit it , it is not work . thx&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2007 04:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057332#M305489</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-08-22T04:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compress files problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057333#M305490</link>
      <description>&amp;gt;what is the function of - in this command? I tried that if not omit it, it is not work.&lt;BR /&gt;&lt;BR /&gt;-f takes a file name.  So you have to have something there.  "-" is a convention in UNIX commands to use stdout or stdin for that file.</description>
      <pubDate>Wed, 22 Aug 2007 04:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compress-files-problem/m-p/4057333#M305490</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-22T04:21:45Z</dc:date>
    </item>
  </channel>
</rss>

