<?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 create compressed file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887124#M771099</link>
    <description>You really have a choice here, you can use either gzip, compress, pack, compact.&lt;BR /&gt;&lt;BR /&gt;For more details about each of those utilities particular features, check their respective man pages.</description>
    <pubDate>Thu, 26 Oct 2006 08:02:52 GMT</pubDate>
    <dc:creator>Christian Tremblay</dc:creator>
    <dc:date>2006-10-26T08:02:52Z</dc:date>
    <item>
      <title>How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887119#M771094</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;   I want to create compressed file out of so many files. Can any one suggest how crate a compressed file out of more then 2000 no of files.</description>
      <pubDate>Thu, 26 Oct 2006 07:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887119#M771094</guid>
      <dc:creator>kumar_choudhury</dc:creator>
      <dc:date>2006-10-26T07:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887120#M771095</link>
      <description>You didn't specify where are those +2000 files located, in a single directory, several directories?&lt;BR /&gt;&lt;BR /&gt;You can first make a tar backup file (like winzip).&lt;BR /&gt;# tar cfv /a/big/dir/myarch.tar dir_contain_files_and_subdirs&lt;BR /&gt;# gzip /a/big/dir/myarch.tar&lt;BR /&gt;&lt;BR /&gt;If you want to create +2000 zip files, &lt;BR /&gt;&lt;BR /&gt;# cd dir_with_files&lt;BR /&gt;# for file in *&lt;BR /&gt;# do &lt;BR /&gt;#    gzip $file&lt;BR /&gt;# done&lt;BR /&gt;&lt;BR /&gt;Yang</description>
      <pubDate>Thu, 26 Oct 2006 07:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887120#M771095</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-10-26T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887121#M771096</link>
      <description>use GNU tar&lt;BR /&gt;&lt;BR /&gt;# find /your/dir | gtar -T - -czf /tmp/archive.tgz&lt;BR /&gt;&lt;BR /&gt;Or create an index in /tmp/index&lt;BR /&gt;&lt;BR /&gt;# gtar -T /tmp/index -czf /tmp/archive.tgz&lt;BR /&gt;&lt;BR /&gt;If it's mostly ASCII files (text), use bzip for (much) better compression. This example doesn't require GNU tar:&lt;BR /&gt;&lt;BR /&gt;# cat index | xargs tar cf - | bzip2 -9 &amp;gt;/tmp/archive.tbz&lt;BR /&gt;&lt;BR /&gt;So many other solutions exist&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 26 Oct 2006 07:19:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887121#M771096</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-10-26T07:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887122#M771097</link>
      <description>Kumar,&lt;BR /&gt;please allocate points to answers.&lt;BR /&gt;Please see:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#22" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#22&lt;/A&gt;&lt;BR /&gt;Your profile shows 0 points to 13 answers !&lt;BR /&gt;&lt;BR /&gt;tar cvf /dest/files.tar ./*&lt;BR /&gt;then&lt;BR /&gt;gzip /dest/files.tar&lt;BR /&gt;or&lt;BR /&gt;compress /dest/files.tar&lt;BR /&gt;&lt;BR /&gt;For more info:&lt;BR /&gt;"man tar"&lt;BR /&gt;"man compress"&lt;BR /&gt;&lt;BR /&gt;If tar blows out due to number of files back up the directory.</description>
      <pubDate>Thu, 26 Oct 2006 07:19:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887122#M771097</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-26T07:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887123#M771098</link>
      <description>Don't use HP tar on itself:&lt;BR /&gt;&lt;BR /&gt;# tar cf file.tar file ....&lt;BR /&gt;# gzip file.tar&lt;BR /&gt;&lt;BR /&gt;Will easily hit the 2 Gb limit.&lt;BR /&gt;Use streaming mode instead&lt;BR /&gt;&lt;BR /&gt;# tar cf - file ... | gzip -9 &amp;gt;file.tar.gz&lt;BR /&gt;&lt;BR /&gt;Extra remark, even if GNU tar supports bzip2 as a command line option, be warned that it is not a builtin, but tar will use the external bzip2 command. gzip *is* builtin.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 26 Oct 2006 07:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887123#M771098</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-10-26T07:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887124#M771099</link>
      <description>You really have a choice here, you can use either gzip, compress, pack, compact.&lt;BR /&gt;&lt;BR /&gt;For more details about each of those utilities particular features, check their respective man pages.</description>
      <pubDate>Thu, 26 Oct 2006 08:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887124#M771099</guid>
      <dc:creator>Christian Tremblay</dc:creator>
      <dc:date>2006-10-26T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887125#M771100</link>
      <description>Another option would be for you to install zip on your HP-UX machine.&lt;BR /&gt;&lt;BR /&gt;You can find zip here:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Misc/zip-2.32/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Misc/zip-2.32/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you will need to unzip on the HP-UX machine you will also need to install unzip:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Once zip is installed you can do a:&lt;BR /&gt;&lt;BR /&gt;# zip /dir/myfiles.zip /dir/file1 /dir/file2 /dir/file3&lt;BR /&gt;&lt;BR /&gt;and just continue listing files.&lt;BR /&gt;&lt;BR /&gt;For full usage instructions:&lt;BR /&gt;&lt;BR /&gt;# zip -?</description>
      <pubDate>Thu, 26 Oct 2006 08:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887125#M771100</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-26T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887126#M771101</link>
      <description>&lt;BR /&gt;A directory and all its files and sub directires.  &lt;BR /&gt;&lt;BR /&gt;cd /directory&lt;BR /&gt;find . -print |cpio -o |gzip &amp;gt;list.gz&lt;BR /&gt;&lt;BR /&gt;all files with a .sh extension&lt;BR /&gt;find / -name "*.sh" |cpio -o |gzip &amp;gt; /tmp/shells.gz&lt;BR /&gt;&lt;BR /&gt;To extract&lt;BR /&gt;mkdir /recover_dir&lt;BR /&gt;cd /recover_dir&lt;BR /&gt;&lt;BR /&gt;gunzip /directory/list.gz&lt;BR /&gt;cpio -idmu &amp;lt; /directory/list&lt;BR /&gt;&lt;BR /&gt;gunzip /directory/shells.gz&lt;BR /&gt;cpio -idmu &amp;lt; /directory&lt;BR /&gt;&lt;BR /&gt;If you really mean compress use compress instead of gzip.&lt;BR /&gt;&lt;BR /&gt;Rory&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2006 23:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887126#M771101</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2006-10-26T23:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create compressed file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887127#M771102</link>
      <description>Use tar -cvf and then gzip the compressed file.</description>
      <pubDate>Fri, 27 Oct 2006 02:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-compressed-file/m-p/3887127#M771102</guid>
      <dc:creator>Nikunj Purohit</dc:creator>
      <dc:date>2006-10-27T02:19:43Z</dc:date>
    </item>
  </channel>
</rss>

