<?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: find to exclude sub directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164003#M456793</link>
    <description>i want to include &lt;BR /&gt;&lt;BR /&gt;all files under following directories&lt;BR /&gt;&lt;BR /&gt;/var/sam/lp/&lt;BR /&gt;/etc/lp/&lt;BR /&gt;/var/spool/lp/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i made a typo</description>
    <pubDate>Tue, 17 Mar 2009 10:25:18 GMT</pubDate>
    <dc:creator>Sunny Jaisinghani</dc:creator>
    <dc:date>2009-03-17T10:25:18Z</dc:date>
    <item>
      <title>find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164002#M456792</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I want exclude all files under following directories&lt;BR /&gt;&lt;BR /&gt;/var/sam/lp/&lt;BR /&gt;/etc/lp/&lt;BR /&gt;/var/spool/lp/&lt;BR /&gt;&lt;BR /&gt;and exclude&lt;BR /&gt;&lt;BR /&gt;/var/spool/lp/request/&lt;BR /&gt;&lt;BR /&gt;I want create a cpio dump of these files&lt;BR /&gt;&lt;BR /&gt;find /var/spool/lp /var/sam/lp /etc/lp -print | cpio -ocv .......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How should i edit the above command to exclude the directory /var/spool/lp/request/&lt;BR /&gt;&lt;BR /&gt;I know it can be done by -prune or -depth but i am not able to put a correct syntax on board.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sunny</description>
      <pubDate>Tue, 17 Mar 2009 10:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164002#M456792</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-17T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164003#M456793</link>
      <description>i want to include &lt;BR /&gt;&lt;BR /&gt;all files under following directories&lt;BR /&gt;&lt;BR /&gt;/var/sam/lp/&lt;BR /&gt;/etc/lp/&lt;BR /&gt;/var/spool/lp/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i made a typo</description>
      <pubDate>Tue, 17 Mar 2009 10:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164003#M456793</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-17T10:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164004#M456794</link>
      <description>find . -type d \( -name /var/sam/lp -o -name /etc/lp \) -prune -o -print&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164004#M456794</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-03-17T10:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164005#M456795</link>
      <description>It did not work for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My requirements are different.&lt;BR /&gt;&lt;BR /&gt;I want to include all files under &lt;BR /&gt;&lt;BR /&gt;/var/sam/lp/&lt;BR /&gt;/etc/lp/&lt;BR /&gt;/var/spool/lp/&lt;BR /&gt;&lt;BR /&gt;and exclude all files under &lt;BR /&gt;&lt;BR /&gt;/var/spool/lp/request/&lt;BR /&gt;&lt;BR /&gt;along with the directory /var/spool/lp/request/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164005#M456795</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-17T11:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164006#M456796</link>
      <description>example&lt;BR /&gt;&lt;BR /&gt;to include&lt;BR /&gt;&lt;BR /&gt;/var/spool/lp&lt;BR /&gt;/var/spool/lp/smodel&lt;BR /&gt;/var/spool/lp/sinterface&lt;BR /&gt;/var/spool/lp/seqfile&lt;BR /&gt;/var/spool/lp/lpd.log&lt;BR /&gt;/var/spool/lp/pstatus&lt;BR /&gt;/var/spool/lp/FIFO&lt;BR /&gt;/var/spool/lp/interface&lt;BR /&gt;/var/spool/lp/model&lt;BR /&gt;/var/spool/lp/member&lt;BR /&gt;/var/spool/lp/info&lt;BR /&gt;/var/spool/lp/log&lt;BR /&gt;/var/spool/lp/cinterface&lt;BR /&gt;/var/spool/lp/SCHEDLOCK&lt;BR /&gt;/etc/lp&lt;BR /&gt;/etc/lp/cinterface&lt;BR /&gt;/etc/lp/cinterface/TEC73060&lt;BR /&gt;/etc/lp/cinterface/TECSB1&lt;BR /&gt;/etc/lp/cinterface/pr003604&lt;BR /&gt;/etc/lp/cinterface/pr011341&lt;BR /&gt;/etc/lp/cinterface/TOTO&lt;BR /&gt;/etc/lp/cinterface/pr011774&lt;BR /&gt;/etc/lp/cinterface/pr051499&lt;BR /&gt;/etc/lp/cinterface/pr078378&lt;BR /&gt;/etc/lp/cinterface/FLTPRN0003&lt;BR /&gt;/etc/lp/cinterface/prmex022&lt;BR /&gt;/etc/lp/cinterface/prmex023&lt;BR /&gt;/etc/lp/cinterface/prmex0fx&lt;BR /&gt;/etc/lp/cinterface/prsing02&lt;BR /&gt;/etc/lp/cinterface/TECGM1&lt;BR /&gt;/etc/lp/cinterface/prsing04&lt;BR /&gt;/etc/lp/cinterface/sigprt01&lt;BR /&gt;/etc/lp/cinterface/TECLR1&lt;BR /&gt;/etc/lp/cinterface/kyoc2050&lt;BR /&gt;/etc/lp/cinterface/TECPM1&lt;BR /&gt;/var/sam/lp&lt;BR /&gt;/var/sam/lp/member&lt;BR /&gt;/var/sam/lp/member/AUS_PQ_53&lt;BR /&gt;/var/sam/lp/member/Aficio3045&lt;BR /&gt;/var/sam/lp/member/BARPRN00001&lt;BR /&gt;/var/sam/lp/member/BARPRN00002&lt;BR /&gt;/var/sam/lp/member/BURPRN00001&lt;BR /&gt;/var/sam/lp/member/BURPRN00001_1&lt;BR /&gt;/var/sam/lp/member/COTPRN13526&lt;BR /&gt;/var/sam/lp/member/COTPRN78507&lt;BR /&gt;/var/sam/lp/member/COTPRN78508&lt;BR /&gt;/var/sam/lp/member/COTPRN78510&lt;BR /&gt;/var/sam/lp/member/COTPRN78512&lt;BR /&gt;/var/sam/lp/member/FARPRNUKT&lt;BR /&gt;/var/sam/lp/member/FHMPRN00001&lt;BR /&gt;/var/sam/lp/member/FHMPRN00010&lt;BR /&gt;/var/sam/lp/member/FLTPRN0001&lt;BR /&gt;/var/sam/lp/member/FLTPRN0003&lt;BR /&gt;/var/sam/lp/member/FLTPRN0007&lt;BR /&gt;/var/sam/lp/member/FLTPRN0008&lt;BR /&gt;/var/sam/lp/member/FLTPRN0010&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;to exclude&lt;BR /&gt;&lt;BR /&gt;/var/spool/lp/request&lt;BR /&gt;/var/spool/lp/request/PR023562&lt;BR /&gt;/var/spool/lp/request/SIGPRT03&lt;BR /&gt;/var/spool/lp/request/TEC73060&lt;BR /&gt;/var/spool/lp/request/TEC73060/tA4209ggeuxp11&lt;BR /&gt;/var/spool/lp/request/TEC73060/dA4209ggeuxp11&lt;BR /&gt;/var/spool/lp/request/TEC73060/.remotesending&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2009 11:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164006#M456796</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-17T11:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164007#M456797</link>
      <description>find    /var/sam/lp  /etc/lp /var/spool/lp \( -name request \) -prune -o -print&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is not the right command , it excludes request subdirectory from all directory path but would work for you.</description>
      <pubDate>Tue, 17 Mar 2009 11:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164007#M456797</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-03-17T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164008#M456798</link>
      <description>Thanks Manikandan&lt;BR /&gt;&lt;BR /&gt;It works for me &lt;BR /&gt;&lt;BR /&gt;You are right; since the directories /etc/lp/ and /var/sam/lp/ does not have "request" sub directory; it gives me desired output&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 17 Mar 2009 11:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164008#M456798</guid>
      <dc:creator>Sunny Jaisinghani</dc:creator>
      <dc:date>2009-03-17T11:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: find to exclude sub directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164009#M456799</link>
      <description>&amp;gt;T G Manikandan: it excludes request subdirectory from all directory path &lt;BR /&gt;&lt;BR /&gt;You can use "-path /var/spool/lp/request" to exclude that specific directory.</description>
      <pubDate>Tue, 17 Mar 2009 19:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-to-exclude-sub-directory/m-p/5164009#M456799</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-17T19:39:36Z</dc:date>
    </item>
  </channel>
</rss>

