<?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: Script help with pruning in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435088#M682691</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in addition to JRFs solutiuon; I want to remember the grep-option '-c', which counts matches.&lt;BR /&gt;# find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) |grep -Evc '/proc|/mvfs'&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Mon, 08 Jun 2009 19:27:01 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2009-06-08T19:27:01Z</dc:date>
    <item>
      <title>Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435082#M682685</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have the following code and I would like to exclude the nfs and mvfs file systems from the find command. Please advise.&lt;BR /&gt;&lt;BR /&gt;  case "$OSTYP" in&lt;BR /&gt;   AIX) find / -name "/proc" -prune -o \&lt;BR /&gt;        \( -fstype jfs -o -fstype jfs2 \) \&lt;BR /&gt;        \( -nouser -o -nogroup\)              &lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 08 Jun 2009 16:49:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435082#M682685</guid>
      <dc:creator>shell script</dc:creator>
      <dc:date>2009-06-08T16:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435083#M682686</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Frankly I find the 'prune' option of find() variable among different UNIX flavors and troublesome to specify.  Consider something like this:&lt;BR /&gt;&lt;BR /&gt;# find / \( ! -fstype nfs \) -o \( -nouser -o -nogroup \)|grep -Ev '/proc|/mvfs'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2009 17:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435083#M682686</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-08T17:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435084#M682687</link>
      <description>No it does not work. It gives me false files (files having valid UID and GID).&lt;BR /&gt;&lt;BR /&gt;More thoughts??</description>
      <pubDate>Mon, 08 Jun 2009 17:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435084#M682687</guid>
      <dc:creator>shell script</dc:creator>
      <dc:date>2009-06-08T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435085#M682688</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Sorry, I 'or'ed when I should have 'and'ed.&lt;BR /&gt;&lt;BR /&gt;# find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \)|grep -Ev '/proc|/mvfs'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 08 Jun 2009 17:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435085#M682688</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-08T17:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435086#M682689</link>
      <description>Thanks JRF that worked perfectly fine. Lastly, how do I add a word count of the number of files found by the find command. Currently I have&lt;BR /&gt;find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) -print | xargs ls -ld |grep -Ev '/proc|/mvfs'</description>
      <pubDate>Mon, 08 Jun 2009 17:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435086#M682689</guid>
      <dc:creator>shell script</dc:creator>
      <dc:date>2009-06-08T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435087#M682690</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;To count the files simply do:&lt;BR /&gt;&lt;BR /&gt;# find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) |grep -Ev '/proc|/mvfs'|wc -l&lt;BR /&gt;&lt;BR /&gt;If you want a long-listing of the files, then:&lt;BR /&gt;&lt;BR /&gt;# find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) -exec ls -ld {} + | grep -Ev '/proc|/mvfs'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 08 Jun 2009 17:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435087#M682690</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-08T17:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435088#M682691</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in addition to JRFs solutiuon; I want to remember the grep-option '-c', which counts matches.&lt;BR /&gt;# find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) |grep -Evc '/proc|/mvfs'&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 08 Jun 2009 19:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435088#M682691</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2009-06-08T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435089#M682692</link>
      <description>Actually it is still trying to find the "mvfs" file system. I had tried it earlier on systems without the virtual file system mvfs.&lt;BR /&gt;&lt;BR /&gt;find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) -exec ls -ld {} + | grep -Ev '/proc|/mvfs'&lt;BR /&gt; is failing. Please help.</description>
      <pubDate>Thu, 11 Jun 2009 17:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435089#M682692</guid>
      <dc:creator>shell script</dc:creator>
      <dc:date>2009-06-11T17:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435090#M682693</link>
      <description>"find / \( ! -fstype nfs \) -a \( -nouser -o -nogroup \) -exec ls -ld {} + | grep -Ev '/proc|/mvfs'&lt;BR /&gt;is failing. Please help."&lt;BR /&gt;&lt;BR /&gt;describe "failing".  also note that the grep command noted should toss anything the that has /proc or /mvs in the name ...&lt;BR /&gt;&lt;BR /&gt;like /a/proc or /b/mvs.......</description>
      <pubDate>Thu, 11 Jun 2009 19:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435090#M682693</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-06-11T19:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script help with pruning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435091#M682694</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Actually it is still trying to find the "mvfs" file system.&lt;BR /&gt;&lt;BR /&gt;Now you are better off consulting IBM/AIX documentation.  As I understand it, 'MVFS' stands for "Multi-Verion-File-System".  It appears that these are mounted under the directory name '/view'.  Hence all I can offer is to include or exclude this directory as we have discussed previously in this thread.&lt;BR /&gt;&lt;BR /&gt;By the way, you ought to change your Formum name from "shell script" to a more suitable moniker that represents _you_.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Jun 2009 19:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-with-pruning/m-p/4435091#M682694</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-11T19:14:14Z</dc:date>
    </item>
  </channel>
</rss>

