<?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: cpio outpout in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466671#M15862</link>
    <description>Ignore the previous post, there is a missing bracket.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There's no summary available in cpio but you can use awk on the output, i.e. &lt;BR /&gt;&lt;BR /&gt;time cat cpio.file | cpio -ictv | awk '{ numFiles++; numBlocks+=$3} END {printf("Files: %d\n Blocks: %d\n", numFiles, numBlocks)}' &lt;BR /&gt;&lt;BR /&gt;The time command will tell you how long it took, the awk script will tell you the number of files and the number of blocks.</description>
    <pubDate>Wed, 22 Nov 2000 16:39:09 GMT</pubDate>
    <dc:creator>Dave Kelly_1</dc:creator>
    <dc:date>2000-11-22T16:39:09Z</dc:date>
    <item>
      <title>cpio outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466669#M15860</link>
      <description>I am verifying a tape using cpio and it is creating a 2.8Mb log file.  Is there a switch on cpio I can use to display a summary of the dump, ie no. of file, no. of blocks, time taken, etc. to minimise the log file.&lt;BR /&gt;Cheers.</description>
      <pubDate>Wed, 22 Nov 2000 16:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466669#M15860</guid>
      <dc:creator>Kevin Mc Gettigan</dc:creator>
      <dc:date>2000-11-22T16:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: cpio outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466670#M15861</link>
      <description>There's no summary available in cpio but you can use awk on the output, i.e.&lt;BR /&gt;&lt;BR /&gt;time cat cpio.file | cpio -ictv | awk '{ numFiles++; numBlocks+=$3} END {printf("Files: %d\n Blocks: %d\n", numFiles, numBlocks}'&lt;BR /&gt;&lt;BR /&gt;The time command will tell you how long it took, the awk script will tell you the number of files and the number of blocks.</description>
      <pubDate>Wed, 22 Nov 2000 16:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466670#M15861</guid>
      <dc:creator>Dave Kelly_1</dc:creator>
      <dc:date>2000-11-22T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: cpio outpout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466671#M15862</link>
      <description>Ignore the previous post, there is a missing bracket.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There's no summary available in cpio but you can use awk on the output, i.e. &lt;BR /&gt;&lt;BR /&gt;time cat cpio.file | cpio -ictv | awk '{ numFiles++; numBlocks+=$3} END {printf("Files: %d\n Blocks: %d\n", numFiles, numBlocks)}' &lt;BR /&gt;&lt;BR /&gt;The time command will tell you how long it took, the awk script will tell you the number of files and the number of blocks.</description>
      <pubDate>Wed, 22 Nov 2000 16:39:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-outpout/m-p/2466671#M15862</guid>
      <dc:creator>Dave Kelly_1</dc:creator>
      <dc:date>2000-11-22T16:39:09Z</dc:date>
    </item>
  </channel>
</rss>

