<?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: command &amp;quot;find&amp;quot; -Option: -xdev   / option perl File::Find in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815177#M641940</link>
    <description>&lt;P&gt;&amp;gt;Option: -mount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no such option.&amp;nbsp; There are -xdev and -mountstop.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2011 08:46:23 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-07-06T08:46:23Z</dc:date>
    <item>
      <title>command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815101#M641939</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unix command find has following option:&lt;/P&gt;&lt;P&gt;find&lt;BR /&gt;&amp;nbsp;-- Option: -xdev&lt;BR /&gt;or&lt;BR /&gt;&amp;nbsp;-- Option: -mount&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Don't descend directories on other filesystems.&amp;nbsp; These options are&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; synonyms.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a perl program and i can't find a Option , which do the same like "-xdev﻿"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;use File::Find;&lt;BR /&gt;﻿.....&lt;/P&gt;&lt;P&gt;# process is a procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;find({wanted =&amp;gt; \&amp;amp;process,no_chdir =&amp;gt; TRUE},$file_system);﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't find a option . does a option exist ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 07:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815101#M641939</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-07-06T07:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815177#M641940</link>
      <description>&lt;P&gt;&amp;gt;Option: -mount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no such option.&amp;nbsp; There are -xdev and -mountstop.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 08:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815177#M641940</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-06T08:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815465#M641941</link>
      <description>&lt;P&gt;Try the "find2perl" command with the options that you want to use.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815465#M641941</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2011-07-06T12:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815553#M641942</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Tom suggested, leverage 'find2perl' to see how this can be done.&amp;nbsp; If you compare something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# find2perl /etc -print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# find2perl /etc -xdev -print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...you can see that the key is evaluating the stat() structure's device number.&amp;nbsp; The 'File::Find::topdev' variable holds the top directory's device number and find() skips objects that don't have the same device number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/4815553#M641942</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-07-06T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5296835#M641943</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried find2perl , but how i use i the perl script of author&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A. Clay Stephenson﻿"&amp;nbsp;&lt;A target="_blank" href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=836546 "&gt;How to find the greatest size file in certain mount point?&lt;/A&gt; ( it is in the attachment), also in the attachment "find2perl "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards﻿&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 17:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5296835#M641943</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-10T17:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5296851#M641944</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1195711"&gt;@support_billa&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;i tried find2perl , but how i use i the perl script of author&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A. Clay Stephenson﻿"&amp;nbsp;&lt;A target="_blank" href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=836546%20"&gt;How to find the greatest size file in certain mount point?&lt;/A&gt; ( it is in the attachment), also in the attachment "find2perl "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The suggestion for looking at 'find2perl' was to show how you implement the shell's find()'s '-xdev' option.&amp;nbsp; As I originally saidt the key is evaluating the stat() structure's device number.&amp;nbsp; The 'File::Find::topdev' variable holds the top directory's device number and find() skips objects that don't have the same device number.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can modify Clay's script to include this if that meets your need; or write your own (to do what *you* want to do; or *not* use File::Find but rather use 'readdir()' to recursively descend a directory and examine and "do things" with its contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be appropriate if you provided some thanks and some feedback in the form of kudos for the help you have received in numerous threads, too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 17:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5296851#M641944</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-08-10T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5297427#M641945</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help, i try to change the perl code .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2011 08:49:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5297427#M641945</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-11T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: command "find" -Option: -xdev   / option perl File::Find</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5312371#M641946</link>
      <description>&lt;P&gt;with help i changed the perl code .﻿ it contains an new optional parameter "-xdev".&lt;/P&gt;&lt;P&gt;it works well , but a little bit slow for filesystem "/" , ux-command "find" is faster !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 14:35:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-quot-find-quot-option-xdev-option-perl-file-find/m-p/5312371#M641946</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-25T14:35:56Z</dc:date>
    </item>
  </channel>
</rss>

