<?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: Excluding multiple directories &amp;amp; files using FIND command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645961#M802895</link>
    <description>Hello Dave,&lt;BR /&gt;       you can use the find command with following option to exclude directories;&lt;BR /&gt;&lt;BR /&gt;find . -name $DIRNAME -prune -o -print&lt;BR /&gt;&lt;BR /&gt;where, $DIRNAME is the name of the directory to be excluded.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Prabu.S</description>
    <pubDate>Tue, 11 Oct 2005 00:29:42 GMT</pubDate>
    <dc:creator>Senthil Prabu.S_1</dc:creator>
    <dc:date>2005-10-11T00:29:42Z</dc:date>
    <item>
      <title>Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645958#M802892</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I am trying to use the find command and exclude multiple directories and files.&lt;BR /&gt;&lt;BR /&gt;So can you suggest me the syntax of excluding multiple directories and files using the find command&lt;BR /&gt;&lt;BR /&gt;help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 10 Oct 2005 17:48:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645958#M802892</guid>
      <dc:creator>Dave Geiger</dc:creator>
      <dc:date>2005-10-10T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645959#M802893</link>
      <description>find / ! \( -path "/dev/*" -path "/tmp/*" \) -print&lt;BR /&gt; &lt;BR /&gt;will walk through entire file system except for /dev and /tmp&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 10 Oct 2005 17:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645959#M802893</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-10-10T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645960#M802894</link>
      <description>To exclude specific file names&lt;BR /&gt; &lt;BR /&gt;find / ! \( -name "core" -name "*.c" \) -print&lt;BR /&gt; &lt;BR /&gt;This will exclude files named "core" or ending with .c.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 10 Oct 2005 17:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645960#M802894</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-10-10T17:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645961#M802895</link>
      <description>Hello Dave,&lt;BR /&gt;       you can use the find command with following option to exclude directories;&lt;BR /&gt;&lt;BR /&gt;find . -name $DIRNAME -prune -o -print&lt;BR /&gt;&lt;BR /&gt;where, $DIRNAME is the name of the directory to be excluded.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Prabu.S</description>
      <pubDate>Tue, 11 Oct 2005 00:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645961#M802895</guid>
      <dc:creator>Senthil Prabu.S_1</dc:creator>
      <dc:date>2005-10-11T00:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645962#M802896</link>
      <description>To Exclude DIR1, DIR2 and DIR3 from list simply use:&lt;BR /&gt;&lt;BR /&gt;find / -type d \( -name DIR1 -o -name DIR2 -o -name DIR3 \) -prune -o&lt;BR /&gt;-type d -print&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 11 Oct 2005 00:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645962#M802896</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-11T00:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple directories &amp; files using FIND command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645963#M802897</link>
      <description>Here's another obvious way.  Find all the stuff, then remove the pieces you want to exclude.&lt;BR /&gt;&lt;BR /&gt;I want to backup filesystems /a /b and /d.&lt;BR /&gt;I want to skip filesystem /c, and directories:  /a/skip1, /b/notthis.&lt;BR /&gt;&lt;BR /&gt;find /a /b /d -print | grep -Ev "^\/a\/skip1|^\/b\/notthis" &amp;gt; answer.txt&lt;BR /&gt;&lt;BR /&gt;Or....&lt;BR /&gt;find /a /b /d -print &amp;gt; bigfile&lt;BR /&gt;cat bigfile | grep  -Ev  "^\/a\/skip1|^\/b\/notthis" &amp;gt; answer.txt&lt;BR /&gt;&lt;BR /&gt;Or...&lt;BR /&gt;find / -print &amp;gt; bigfile&lt;BR /&gt;cat bigfile | grep -Ev "^\/c|...blah blah.."&lt;BR /&gt;&lt;BR /&gt;^ ==== anchor search to beginning of string.&lt;BR /&gt;\/ === really search for a forward slash.&lt;BR /&gt;| ==== the OR command. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2005 13:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/excluding-multiple-directories-amp-files-using-find-command/m-p/3645963#M802897</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2005-10-12T13:38:36Z</dc:date>
    </item>
  </channel>
</rss>

