<?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: To find diff ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189092#M461263</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;If you did that then you got the difference between these files and the users.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sunny</description>
    <pubDate>Thu, 23 Jul 2009 08:42:14 GMT</pubDate>
    <dc:creator>Sunny123_1</dc:creator>
    <dc:date>2009-07-23T08:42:14Z</dc:date>
    <item>
      <title>To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189089#M461260</link>
      <description>there are n no of users in two boxes actually i want to know who are existing in box1 &amp;amp; who are all in box2? i used diff command but it dosent give the gud o/p?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 23 Jul 2009 08:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189089#M461260</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2009-07-23T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189090#M461261</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;copy the box1 /etc/passwd file to /etc/passwd_box1.And then ftp that file to box 2 and then use diff command&lt;BR /&gt;&lt;BR /&gt;diff /etc/passwd /etc/passwd_box1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sunny</description>
      <pubDate>Thu, 23 Jul 2009 08:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189090#M461261</guid>
      <dc:creator>Sunny123_1</dc:creator>
      <dc:date>2009-07-23T08:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189091#M461262</link>
      <description>thats wat i have done but after tat i grep one user in both the boxes they exist.</description>
      <pubDate>Thu, 23 Jul 2009 08:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189091#M461262</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2009-07-23T08:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189092#M461263</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If you did that then you got the difference between these files and the users.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sunny</description>
      <pubDate>Thu, 23 Jul 2009 08:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189092#M461263</guid>
      <dc:creator>Sunny123_1</dc:creator>
      <dc:date>2009-07-23T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189093#M461264</link>
      <description>Hi Fizan,&lt;BR /&gt;&lt;BR /&gt;If you want to compare the password file try this. First take the login names from server1 using this command.&lt;BR /&gt;&lt;BR /&gt;#cat /etc/passwd |cut -d: -f1 &amp;gt; /tmp/logins&lt;BR /&gt;&lt;BR /&gt;Copy the /tmp/logins file to server2 then run these commands.&lt;BR /&gt;&lt;BR /&gt;# for i in `cat /tmp/logins`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; grep $i /etc/passwd &amp;gt; /dev/null&lt;BR /&gt;&amp;gt; if [ $? -eq 0 ]&lt;BR /&gt;&amp;gt; then&lt;BR /&gt;&amp;gt; echo "$i account is exist on the server2"&lt;BR /&gt;&amp;gt; else&lt;BR /&gt;&amp;gt; echo "$i account does not exist on the server2"&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;It will give you the output like which account exist on the server2 and which account does not exist.&lt;BR /&gt;&lt;BR /&gt;Hope it helps you&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jul 2009 08:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189093#M461264</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-07-23T08:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189094#M461265</link>
      <description>&amp;gt;I used diff command but it doesn't give the good o/p?&lt;BR /&gt;&lt;BR /&gt;You can get the two files and sort them.  Then use comm(1) to select which:&lt;BR /&gt;comm -23 pwd.1 pwd.2  # users on 1 and not 2&lt;BR /&gt;comm -13 pwd.1 pwd.2  # users on 2 and not 3</description>
      <pubDate>Thu, 23 Jul 2009 09:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189094#M461265</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-23T09:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: To find diff ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189095#M461266</link>
      <description>thanks.</description>
      <pubDate>Thu, 23 Jul 2009 13:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/to-find-diff/m-p/5189095#M461266</guid>
      <dc:creator>fizan</dc:creator>
      <dc:date>2009-07-23T13:44:30Z</dc:date>
    </item>
  </channel>
</rss>

