<?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: Another Question About Tar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112540#M897265</link>
    <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;tar -cvf /path/to/tar.file `cat /path/to/test`&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Nov 2003 12:55:06 GMT</pubDate>
    <dc:creator>Michael Schulte zur Sur</dc:creator>
    <dc:date>2003-11-06T12:55:06Z</dc:date>
    <item>
      <title>Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112537#M897262</link>
      <description>This one may be slightly more difficult.&lt;BR /&gt;&lt;BR /&gt;If I want to tar a directory but leave out a specific subdirectory within it, what would the correct syntax be? Thanks.</description>
      <pubDate>Thu, 06 Nov 2003 12:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112537#M897262</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2003-11-06T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112538#M897263</link>
      <description>That is not done quite as easily.&lt;BR /&gt;&lt;BR /&gt;I would do something like the following:&lt;BR /&gt;&lt;BR /&gt;# cd /dir/to/tar&lt;BR /&gt;# ls -1 &amp;gt;&amp;gt; ../filename&lt;BR /&gt;# vi ../filename &lt;BR /&gt;(Do this and remove the directory that you want to skip)&lt;BR /&gt;# tar -xvf /path/to/file.tar $(cat ../filename)</description>
      <pubDate>Thu, 06 Nov 2003 12:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112538#M897263</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-11-06T12:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112539#M897264</link>
      <description>I followed the steps you had outlined, and the command syntax that I used was:&lt;BR /&gt;&lt;BR /&gt;# tar -cvf /path/to/tar.file $(cat /path/to/test)&lt;BR /&gt;&lt;BR /&gt;I encountered the following error:&lt;BR /&gt;&lt;BR /&gt;Illegal variable name.&lt;BR /&gt;&lt;BR /&gt;What did I miss?</description>
      <pubDate>Thu, 06 Nov 2003 12:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112539#M897264</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2003-11-06T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112540#M897265</link>
      <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;tar -cvf /path/to/tar.file `cat /path/to/test`&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2003 12:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112540#M897265</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-11-06T12:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112541#M897266</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I tried the syntax &lt;BR /&gt;&lt;BR /&gt;tar -cvf /path/to/tar.file `cat /path/to/test`&lt;BR /&gt;&lt;BR /&gt;and got the error: &lt;BR /&gt;Cannot add file cat /home/ahk/test: No such file or directory&lt;BR /&gt;&lt;BR /&gt;I also tried&lt;BR /&gt;&lt;BR /&gt;tar -cvf /path/to/tar.file cat'/path/to/test`&lt;BR /&gt;and got the following:&lt;BR /&gt;Cannot add file cat /home/ahk/test: No such file or directory&lt;BR /&gt;Removing leading '/' from absolute path names in the archive&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2003 13:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112541#M897266</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2003-11-06T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112542#M897267</link>
      <description>Andrew,&lt;BR /&gt; &lt;BR /&gt;the reason for the error is that you are using the C-Shell.&lt;BR /&gt; &lt;BR /&gt;Just feed the tar to sh and it will work:&lt;BR /&gt; &lt;BR /&gt;sh -c 'tar cvf /path/to/tarfile $(cat ../filelist)'&lt;BR /&gt; &lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Thu, 06 Nov 2003 13:12:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112542#M897267</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-11-06T13:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112543#M897268</link>
      <description>That did it. Thanks.</description>
      <pubDate>Thu, 06 Nov 2003 13:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112543#M897268</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2003-11-06T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112544#M897269</link>
      <description>What about something like:&lt;BR /&gt;tar -cvf /tmp2/vbe/find_test  -C $(find . -print|grep -v &lt;YOUR unwanted="" subdir=""&gt;)&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/YOUR&gt;</description>
      <pubDate>Thu, 06 Nov 2003 13:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112544#M897269</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2003-11-06T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question About Tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112545#M897270</link>
      <description>Another, perhaps slightly more general, dynamic command example :&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;(cd /d2tar ; tar cvf /dev/rmt/0m `ls -1a |grep -vE '^\.$|^\.\.$|^exd1$|^exd2$' ` )&lt;BR /&gt;&lt;BR /&gt;. the "1" lists one per line.&lt;BR /&gt; &lt;BR /&gt;. the "a" is to force "." files to be printed, like ".profile".  Depending on the Unix version, they may not show up without it -- e.g., certain Linux.&lt;BR /&gt; &lt;BR /&gt;. the grep's -v excludes lines and -E allows expressions.&lt;BR /&gt; &lt;BR /&gt;. the ^...$ means match entire name from beginning of line to end of line.&lt;BR /&gt; &lt;BR /&gt;. here we exclude 2 directories, "exd1" and "exd2" (the "|" meaning "or").&lt;BR /&gt; &lt;BR /&gt;. finally, the ^\.$|^\.\.$ excludes the "." and ".." that show up in a 'ls -1a' listing (which are current directory and parent directory).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 11:03:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/another-question-about-tar/m-p/3112545#M897270</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2003-11-10T11:03:48Z</dc:date>
    </item>
  </channel>
</rss>

