<?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: tar a series of directories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494229#M364045</link>
    <description>Hi Vince,&lt;BR /&gt;&lt;BR /&gt;In line with the above example :&lt;BR /&gt;&lt;BR /&gt;cd directory_path&lt;BR /&gt;&lt;BR /&gt;for i in `lsf | grep \/ | sed 's/\// /'`&lt;BR /&gt;do&lt;BR /&gt;tar cvf /tmp/$i.tar $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;No doubt there are more elegant ways of ascertaining the sub-directory names to be tar'd in the first line of the for loop, but it is an example.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
    <pubDate>Wed, 09 Sep 2009 12:15:48 GMT</pubDate>
    <dc:creator>Mark S Meadows</dc:creator>
    <dc:date>2009-09-09T12:15:48Z</dc:date>
    <item>
      <title>tar a series of directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494226#M364042</link>
      <description>How do I tar a series of directories without typing the directory names? As an example, if I have three directories aaa, bbb, ccc I would like to get aaa.tar, bbb.tar and ccc.tar but not a single archived tar.</description>
      <pubDate>Wed, 09 Sep 2009 09:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494226#M364042</guid>
      <dc:creator>Vince Fernando</dc:creator>
      <dc:date>2009-09-09T09:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: tar a series of directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494227#M364043</link>
      <description>Hi, &lt;BR /&gt;perhaps why not with a script&lt;BR /&gt;for i in aaa bbb ccc&lt;BR /&gt;do&lt;BR /&gt;cd $i&lt;BR /&gt;tar cvf /tmp/$i.tar .&lt;BR /&gt;done&lt;BR /&gt;Hope it helps</description>
      <pubDate>Wed, 09 Sep 2009 09:25:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494227#M364043</guid>
      <dc:creator>smatador</dc:creator>
      <dc:date>2009-09-09T09:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: tar a series of directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494228#M364044</link>
      <description>Thanks very much smatador. How do I access all the directories in a particular directory for tarring (not just aaa, bbb and ccc)?</description>
      <pubDate>Wed, 09 Sep 2009 10:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494228#M364044</guid>
      <dc:creator>Vince Fernando</dc:creator>
      <dc:date>2009-09-09T10:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: tar a series of directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494229#M364045</link>
      <description>Hi Vince,&lt;BR /&gt;&lt;BR /&gt;In line with the above example :&lt;BR /&gt;&lt;BR /&gt;cd directory_path&lt;BR /&gt;&lt;BR /&gt;for i in `lsf | grep \/ | sed 's/\// /'`&lt;BR /&gt;do&lt;BR /&gt;tar cvf /tmp/$i.tar $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;No doubt there are more elegant ways of ascertaining the sub-directory names to be tar'd in the first line of the for loop, but it is an example.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 09 Sep 2009 12:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-a-series-of-directories/m-p/4494229#M364045</guid>
      <dc:creator>Mark S Meadows</dc:creator>
      <dc:date>2009-09-09T12:15:48Z</dc:date>
    </item>
  </channel>
</rss>

