<?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 script for finding hardlinks in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884825#M770951</link>
    <description>Can anyone of you give me a script for finding the hardlinks present in a particular directory(including the sub-directories in that location).</description>
    <pubDate>Mon, 23 Oct 2006 06:39:54 GMT</pubDate>
    <dc:creator>devhariprasad</dc:creator>
    <dc:date>2006-10-23T06:39:54Z</dc:date>
    <item>
      <title>script for finding hardlinks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884825#M770951</link>
      <description>Can anyone of you give me a script for finding the hardlinks present in a particular directory(including the sub-directories in that location).</description>
      <pubDate>Mon, 23 Oct 2006 06:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884825#M770951</guid>
      <dc:creator>devhariprasad</dc:creator>
      <dc:date>2006-10-23T06:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: script for finding hardlinks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884826#M770952</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is horribly inefficient...&lt;BR /&gt;&lt;BR /&gt;# find /path/to/dir -type f -print | xargs -i find /path/to/dir -type f -linkedto {} -exec ls -1i {} \; | sort -k1 | uniq &lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 23 Oct 2006 06:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884826#M770952</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-23T06:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: script for finding hardlinks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884827#M770953</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -links +1|xargs ls -l&lt;BR /&gt;&lt;BR /&gt;...a good example is:&lt;BR /&gt;&lt;BR /&gt;# find /sbin -xdev -type f -links +1|xargs ls -l&lt;BR /&gt;&lt;BR /&gt;...see the manpages for 'find' for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Oct 2006 06:58:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884827#M770953</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-23T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: script for finding hardlinks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884828#M770954</link>
      <description>Hi,&lt;BR /&gt;please see:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=87389" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=87389&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=36428" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=36428&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Either way you have to loop through the filenames in your directory tree.&lt;BR /&gt;So my (bad) solution would be to do a find and redirect the filename list.&lt;BR /&gt;Then use the filname list as input into your solution (inode or linkedto):&lt;BR /&gt;&lt;BR /&gt;find &lt;DIRPATH&gt; -print &amp;gt; /tmp/x.lis&lt;BR /&gt;while read record&lt;BR /&gt;do&lt;BR /&gt;&lt;YOUR solution=""&gt;&lt;BR /&gt;done &amp;lt; /tmp/x.lis&lt;/YOUR&gt;&lt;/DIRPATH&gt;</description>
      <pubDate>Mon, 23 Oct 2006 06:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-finding-hardlinks/m-p/3884828#M770954</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-23T06:59:12Z</dc:date>
    </item>
  </channel>
</rss>

