<?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: Help with find syntax in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209683#M168306</link>
    <description>If I understand your question, the answer is nothing. The files under the mountpoint "disappear" and are replaced by those in the mounted filesystem. When you umount the filesystem, the original files "reappear". You are, of course, wasting space in /. Moreover, it sounds as though what I would technically refer to as a "mess". Your newer data (as much of it as there is) are on / and your older, intact, data are on the mounted filesystem. You may have to "merge" these to get a good data set or re-enter data since the time of the filesystems disappearance. You might think about unount the filesystem and remounting under another mountpoint so that you could see both sets of data. When you finally clean this up, you should clean up everything below the mountpoint on /.&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Mar 2004 17:18:06 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-03-04T17:18:06Z</dc:date>
    <item>
      <title>Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209677#M168300</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;While I was out on vacation several problems developed with our N4000 running 11i. I think my temporary replacement is to blame. A number of applications are failing with "file not found" and I think I have found the problem. A number of symbolic links refer to files that are missing. I've been trying to write a script using find.  Basically, I'm doing this:&lt;BR /&gt;find /user /work -type l -exec ls -l {} \;  &amp;gt;  /tmp/filelist&lt;BR /&gt;That is finding the symbolic links but I am having trouble dealing with the absolute pathnames and relative pathnames. Is there another find option that will help?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 12:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209677#M168300</guid>
      <dc:creator>Stephen Taylor_1</dc:creator>
      <dc:date>2004-03-04T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209678#M168301</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Would the following work for you?&lt;BR /&gt;&lt;BR /&gt;find /tmp -type l |xargs ll -d&lt;BR /&gt;&lt;BR /&gt;This way ls -l doesn't traverse the sub directories and it will work for files too.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 04 Mar 2004 12:52:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209678#M168301</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-03-04T12:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209679#M168302</link>
      <description>My psychic, Miss Cleo, tells me that your temp was an adoptee from another OS, possibly Micro... --- Miss Cleo said the remaining letters were fuzzy.&lt;BR /&gt;&lt;BR /&gt;Well, I will give you a find hint. Use Perl's File::Find. It keeps up with the current directory and you can do your own thing inside the 'wanted' subroutine.&lt;BR /&gt;&lt;BR /&gt;The problem with trying to parse ls -l &lt;BR /&gt;is the "xxx -&amp;gt; yyy" at the end of each ls -l output line. Separating the -&amp;gt; part from everything else is pretty simple BUT if the filenames have whitespaces (and they could) then things get very tricky. That still does not address the relative/absolute path problems.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I recently wriote a Perl script that was very close to your needs. Give me a few minutes and I'll modify it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 12:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209679#M168302</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-04T12:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209680#M168303</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;I completely misunderstood (rather misread) your question.&lt;BR /&gt;&lt;BR /&gt;May be one solution is to make use of 'basename' and|or 'dirname' commands to get what you want.  For ex., if the link is like&lt;BR /&gt;&lt;BR /&gt;/dir1/dir2/file -&amp;gt; file2&lt;BR /&gt;&lt;BR /&gt;you can get the dir name of the first file with 'dirname /dir1/dir2/file'. basename will skip the directory tree and give you only the file name. A combination of both may work for you.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 04 Mar 2004 13:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209680#M168303</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-03-04T13:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209681#M168304</link>
      <description>Here you go Steve. I had a script that was very close from this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=470847" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=470847&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Although I didn't have to use it, Perl has the readlink() function just like the readlink() system call and the lstat() function as well. It took me longer to modify the Usage() message than it did to modify the "meat" of the code.&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;badslink.pl /home /usr &lt;BR /&gt;or&lt;BR /&gt;badslink.pl&lt;BR /&gt;The latter case will descend starting at the CWD. Invoke as badslink.pl -u for full usage.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 13:14:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209681#M168304</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-04T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209682#M168305</link>
      <description>Thanks. The Perl script worked. I found out what really happened. After talking to the other administrator, I found out that a directory had disappeared. He then did a restore from backup. The problem was that this was a mounted filesystem and he restored to the root filesystem. He filled up root during the restore and had to remove some files.  I have now remounted the filesystem and all the files are back. &lt;BR /&gt;&lt;BR /&gt;My question now is what happens when I mount a filesystem under a directory that already has files in it?&lt;BR /&gt;&lt;BR /&gt;BTW,  he is a Windows guy.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 17:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209682#M168305</guid>
      <dc:creator>Stephen Taylor_1</dc:creator>
      <dc:date>2004-03-04T17:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with find syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209683#M168306</link>
      <description>If I understand your question, the answer is nothing. The files under the mountpoint "disappear" and are replaced by those in the mounted filesystem. When you umount the filesystem, the original files "reappear". You are, of course, wasting space in /. Moreover, it sounds as though what I would technically refer to as a "mess". Your newer data (as much of it as there is) are on / and your older, intact, data are on the mounted filesystem. You may have to "merge" these to get a good data set or re-enter data since the time of the filesystems disappearance. You might think about unount the filesystem and remounting under another mountpoint so that you could see both sets of data. When you finally clean this up, you should clean up everything below the mountpoint on /.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 17:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-find-syntax/m-p/3209683#M168306</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-04T17:18:06Z</dc:date>
    </item>
  </channel>
</rss>

