<?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: Checking for Links in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641610#M239309</link>
    <description>would this following code snippet be useful ? &lt;BR /&gt;&lt;BR /&gt;find /home/george -type l &amp;gt; /tmp/links.george&lt;BR /&gt;for link in `cat /tmp/george`&lt;BR /&gt;do&lt;BR /&gt;echo "link $link removed" &amp;gt;&amp;gt; /tmp/mailfile&lt;BR /&gt;rm $link&lt;BR /&gt;done&lt;BR /&gt;sendmail george@domain.com &amp;lt; /tmp/mailfile&lt;BR /&gt;rm /tmp/links.george /tmp/mailfile&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 04 Oct 2005 11:14:20 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-10-04T11:14:20Z</dc:date>
    <item>
      <title>Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641609#M239308</link>
      <description>Hello Gurus,&lt;BR /&gt;&lt;BR /&gt;I need a script that can check a specific directory(/home/george)  and grab all the files with Symbolic links. Then it must remove the links and mail me the details.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2005 11:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641609#M239308</guid>
      <dc:creator>George Abraham_3</dc:creator>
      <dc:date>2005-10-04T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641610#M239309</link>
      <description>would this following code snippet be useful ? &lt;BR /&gt;&lt;BR /&gt;find /home/george -type l &amp;gt; /tmp/links.george&lt;BR /&gt;for link in `cat /tmp/george`&lt;BR /&gt;do&lt;BR /&gt;echo "link $link removed" &amp;gt;&amp;gt; /tmp/mailfile&lt;BR /&gt;rm $link&lt;BR /&gt;done&lt;BR /&gt;sendmail george@domain.com &amp;lt; /tmp/mailfile&lt;BR /&gt;rm /tmp/links.george /tmp/mailfile&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2005 11:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641610#M239309</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-04T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641611#M239310</link>
      <description>hey Mel&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply but i dont want to remove the file.. Just remove the Link...&lt;BR /&gt;&lt;BR /&gt;rm $link as you say will delete the file?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;George</description>
      <pubDate>Tue, 04 Oct 2005 11:23:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641611#M239310</guid>
      <dc:creator>George Abraham_3</dc:creator>
      <dc:date>2005-10-04T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641612#M239311</link>
      <description>Hi Georges,&lt;BR /&gt;&lt;BR /&gt;try this :&lt;BR /&gt;&lt;BR /&gt;find /home/georges -type l | xargs rm -f&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 04 Oct 2005 11:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641612#M239311</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2005-10-04T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641613#M239312</link>
      <description>Hey i just want to remove the symbolic link and NOT THE FILE&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;george&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Oct 2005 11:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641613#M239312</guid>
      <dc:creator>George Abraham_3</dc:creator>
      <dc:date>2005-10-04T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641614#M239313</link>
      <description>If you have something like:&lt;BR /&gt;&lt;BR /&gt;lrw-rw-rw- 1 user user 96 Oct 04 11:35 file1 -&amp;gt; file&lt;BR /&gt;&lt;BR /&gt;Now file1 is the link and file is the real file.&lt;BR /&gt;&lt;BR /&gt;If you do:&lt;BR /&gt;&lt;BR /&gt;# rm file1&lt;BR /&gt;&lt;BR /&gt;That will just remove the file1 link.  It will NOT remove file.</description>
      <pubDate>Tue, 04 Oct 2005 11:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641614#M239313</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-10-04T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for Links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641615#M239314</link>
      <description>George,&lt;BR /&gt;&lt;BR /&gt;Don't worry, rm on an inode which is a symbolic link will remove the symbolic link not the file itself&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 04 Oct 2005 12:26:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-for-links/m-p/3641615#M239314</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2005-10-04T12:26:20Z</dc:date>
    </item>
  </channel>
</rss>

