<?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: extract one file or folder for a tar file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830499#M778975</link>
    <description>It's as simple as it sounds:&lt;BR /&gt;&lt;BR /&gt;tar -xvf testfile.tar home/user1/data/testdata1&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;tar -xvf testfile.tar /home/user1</description>
    <pubDate>Tue, 25 Jul 2006 15:13:39 GMT</pubDate>
    <dc:creator>Jonathan Fife</dc:creator>
    <dc:date>2006-07-25T15:13:39Z</dc:date>
    <item>
      <title>extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830498#M778974</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need tips on how to extract one file or one folder from a tar file.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;tar tvf testfile.tar&lt;BR /&gt;home/user1/data/testdata1&lt;BR /&gt;home/user1/data/testdata2&lt;BR /&gt;home/user2/patch/testpatch1&lt;BR /&gt;home/user2/patch/testpatch2&lt;BR /&gt;&lt;BR /&gt;can I use tar to get file testdata1 or the folder user1? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jul 2006 15:10:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830498#M778974</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-07-25T15:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830499#M778975</link>
      <description>It's as simple as it sounds:&lt;BR /&gt;&lt;BR /&gt;tar -xvf testfile.tar home/user1/data/testdata1&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;tar -xvf testfile.tar /home/user1</description>
      <pubDate>Tue, 25 Jul 2006 15:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830499#M778975</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-07-25T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830500#M778976</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Aside from the fact that you have your answer, please note that it's not "good form" to use that other OS term 'folder'.  It's a 'directory' in Unix!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Jul 2006 15:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830500#M778976</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-25T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830501#M778977</link>
      <description>Thanks for the tips and clarification.&lt;BR /&gt;&lt;BR /&gt;Regards!</description>
      <pubDate>Tue, 25 Jul 2006 15:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830501#M778977</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-07-25T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830502#M778978</link>
      <description>TAR&lt;BR /&gt;&lt;BR /&gt;Things to remember about tar:&lt;BR /&gt;&lt;BR /&gt;   * tar is, for the most part, platform generic (ie: a tar tape created on&lt;BR /&gt;     a SUN machine can usually be read by an HPUX machine). However, if the&lt;BR /&gt;     platforms are far removed from each other (ie: SunOS 4.x and HPUX&lt;BR /&gt;     11.0), then reading the tape may be impossible.&lt;BR /&gt;&lt;BR /&gt;                 Command                            Description&lt;BR /&gt;&lt;BR /&gt;      tar cvf /dev/rmt/0m /etc/hosts              backup one file&lt;BR /&gt;&lt;BR /&gt;   tar cvf /dev/rmt/0m (file1) (file2)         backup file1 and file2&lt;BR /&gt;&lt;BR /&gt;           tar tvf /dev/rmt/0m                verify contents of tape&lt;BR /&gt;&lt;BR /&gt;           tar xvf /dev/rmt/0m                  restore entire tape&lt;BR /&gt;&lt;BR /&gt;        tar xvf /dev/rmt/0m (file)                restore one file&lt;BR /&gt;&lt;BR /&gt;  tar tf /dev/rmt/0m | grep swp | xargs    restore all files that contain&lt;BR /&gt;           tar xvf /dev/rmt/0m                     the string swp&lt;BR /&gt;&lt;BR /&gt;Good Luck,</description>
      <pubDate>Fri, 28 Jul 2006 08:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830502#M778978</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2006-07-28T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: extract one file or folder for a tar file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830503#M778979</link>
      <description>thanks for the details.&lt;BR /&gt;&lt;BR /&gt;Best regards!</description>
      <pubDate>Fri, 28 Jul 2006 09:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-one-file-or-folder-for-a-tar-file/m-p/3830503#M778979</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-07-28T09:54:09Z</dc:date>
    </item>
  </channel>
</rss>

