<?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 can I 'tar' my source files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390199#M199045</link>
    <description>Try this&lt;BR /&gt;&lt;BR /&gt;tar -cvf backup.tar $(find . -name "*.h" -o -name "*.cpp" -print)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Sep 2004 18:57:28 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-09-29T18:57:28Z</dc:date>
    <item>
      <title>how can I 'tar' my source files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390198#M199044</link>
      <description>I'm trying to use tar to create a tar file that includes all the *.h and *.cpp files in all subdirectories and includes their relative path.&lt;BR /&gt;&lt;BR /&gt;I thought I could do something like:&lt;BR /&gt;&lt;BR /&gt;tar cvf backup.tar -c . *.h *.cpp&lt;BR /&gt;&lt;BR /&gt;but this seems to ignore ' *.h *.cpp' and stores everything?&lt;BR /&gt;&lt;BR /&gt;I'm lost.</description>
      <pubDate>Wed, 29 Sep 2004 18:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390198#M199044</guid>
      <dc:creator>Peter Hug</dc:creator>
      <dc:date>2004-09-29T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can I 'tar' my source files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390199#M199045</link>
      <description>Try this&lt;BR /&gt;&lt;BR /&gt;tar -cvf backup.tar $(find . -name "*.h" -o -name "*.cpp" -print)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2004 18:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390199#M199045</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-29T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: how can I 'tar' my source files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390200#M199046</link>
      <description>Sunder is absolutely correct&lt;BR /&gt;tar -cvf backup.tar $(find . -name "*.h" -o -name "*.cpp" -print) will do&lt;BR /&gt;regards&lt;BR /&gt;SK</description>
      <pubDate>Wed, 29 Sep 2004 23:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390200#M199046</guid>
      <dc:creator>Sยภเl Kย๓คг</dc:creator>
      <dc:date>2004-09-29T23:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can I 'tar' my source files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390201#M199047</link>
      <description>hai guru sundar,&lt;BR /&gt;&lt;BR /&gt; tar -cvf backup.tar $(find . -name "*.h" -o -name "*.cpp" -print) will not work here.&lt;BR /&gt;&lt;BR /&gt; I will only get *.h header files only not *.cpp files.&lt;BR /&gt;&lt;BR /&gt; while using -o option we have to use () on this as,&lt;BR /&gt;&lt;BR /&gt; tar -cvf backup.tar $(find . \( -name "*.h" -o -name "*.cpp" \) -print)&lt;BR /&gt;&lt;BR /&gt; It will work now.&lt;BR /&gt; &lt;BR /&gt; Else simply as,&lt;BR /&gt;&lt;BR /&gt;  tar -cvf backup.tar `find . -name "*.h" -o -name "*.cpp"`&lt;BR /&gt;&lt;BR /&gt; It will work there.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2004 23:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-tar-my-source-files/m-p/3390201#M199047</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-09-29T23:42:20Z</dc:date>
    </item>
  </channel>
</rss>

