<?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: Reading from tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244731#M330552</link>
    <description>The -t option in tar will list ALL files, so you can pipe to grep.&lt;BR /&gt;&lt;BR /&gt;pax(1) allows you to provide a pattern but it will probably read the whole tape.&lt;BR /&gt;pax -nv -f /dev/rmt/0mn etc/passwd&lt;BR /&gt;-n says it selects the first, so that might work.</description>
    <pubDate>Fri, 01 Aug 2008 16:04:10 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-08-01T16:04:10Z</dc:date>
    <item>
      <title>Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244728#M330549</link>
      <description>I have an ignite backup tap and I wanna check if particular file is present on the tape, lets say for example /etc/passwd&lt;BR /&gt;&lt;BR /&gt;I am issuing the following command.&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0mn /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Instead of just listing passwd file, it lists the whole contents of the archive. How can I just check for a single file say /etc/passwd if it is present on archive or not?</description>
      <pubDate>Fri, 01 Aug 2008 15:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244728#M330549</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2008-08-01T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244729#M330550</link>
      <description>Did you use grep ?&lt;BR /&gt;tar -tvf ..... |grep filename&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2008 15:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244729#M330550</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2008-08-01T15:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244730#M330551</link>
      <description>Have a look at the tar man page.&lt;BR /&gt;&lt;BR /&gt;The '-t' options lists the names of ALL files in the tar archive.  The '-t' option does NOT accept a filename as an argument to list only one file.&lt;BR /&gt;&lt;BR /&gt;So doing:&lt;BR /&gt;&lt;BR /&gt;# tar -tvf /dev/rmt/0mn /etc/passwd&lt;BR /&gt;&lt;BR /&gt;is exactly the same as doing:&lt;BR /&gt;&lt;BR /&gt;# tar -tvf /dev/rmt/0mn&lt;BR /&gt;&lt;BR /&gt;The '/etc/passwd' argument is ignored.</description>
      <pubDate>Fri, 01 Aug 2008 16:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244730#M330551</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-08-01T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244731#M330552</link>
      <description>The -t option in tar will list ALL files, so you can pipe to grep.&lt;BR /&gt;&lt;BR /&gt;pax(1) allows you to provide a pattern but it will probably read the whole tape.&lt;BR /&gt;pax -nv -f /dev/rmt/0mn etc/passwd&lt;BR /&gt;-n says it selects the first, so that might work.</description>
      <pubDate>Fri, 01 Aug 2008 16:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244731#M330552</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-01T16:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244732#M330553</link>
      <description>&amp;gt;... provide a pattern&lt;BR /&gt;&lt;BR /&gt;Make sure you get a listing of what you want to find so you can check your pattern.  I.e. if it is a file matching pattern, or something like a regular expression where it isn't automatically anchored with ^ and $.</description>
      <pubDate>Fri, 01 Aug 2008 17:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244732#M330553</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-01T17:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244733#M330554</link>
      <description>mt -t /dev/rmt/0mn fsf 1  ; tar -tvf /dev/rmt/0m /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Make sure to use the no-rewind device to position the tape with mt.&lt;BR /&gt;&lt;BR /&gt;I am not sure may be filename cannot have a leading path, I can't check now.&lt;BR /&gt;&lt;BR /&gt;tar -xvf /dev/rmt/0m etc/passwd&lt;BR /&gt;&lt;BR /&gt;Make a copy of the current /etc/passwd file before you restore.</description>
      <pubDate>Sat, 02 Aug 2008 12:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244733#M330554</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-02T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244734#M330555</link>
      <description>Hi Razi,&lt;BR /&gt;&lt;BR /&gt;Please try using :&lt;BR /&gt;&lt;BR /&gt;# tar -tvf /dev/rmt/0mn|grep "/etc/passwd"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Deepak&lt;BR /&gt;</description>
      <pubDate>Sun, 03 Aug 2008 22:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244734#M330555</guid>
      <dc:creator>Deepak Kr</dc:creator>
      <dc:date>2008-08-03T22:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading from tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244735#M330556</link>
      <description>Hi Razi&lt;BR /&gt;&lt;BR /&gt;Check with&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0mn etc/passwd&lt;BR /&gt;&lt;BR /&gt;etc/passwd not /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Mon, 04 Aug 2008 06:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reading-from-tar/m-p/4244735#M330556</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2008-08-04T06:06:22Z</dc:date>
    </item>
  </channel>
</rss>

