<?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 Compare to directory structures in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303155#M184151</link>
    <description>Any one know how to compare a directory structure on one machine to another machine.&lt;BR /&gt;&lt;BR /&gt;Im have a permission problem on one of the machines and the directories and files are quit extensive.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 11 Jun 2004 15:22:09 GMT</pubDate>
    <dc:creator>hpuxrox</dc:creator>
    <dc:date>2004-06-11T15:22:09Z</dc:date>
    <item>
      <title>Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303155#M184151</link>
      <description>Any one know how to compare a directory structure on one machine to another machine.&lt;BR /&gt;&lt;BR /&gt;Im have a permission problem on one of the machines and the directories and files are quit extensive.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 11 Jun 2004 15:22:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303155#M184151</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2004-06-11T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303156#M184152</link>
      <description>&lt;BR /&gt;machine 1&lt;BR /&gt;dir *. &amp;gt; mach1&lt;BR /&gt;&lt;BR /&gt;machine 2&lt;BR /&gt;&lt;BR /&gt;dir *. &amp;gt; mach2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftp, scp whatever&lt;BR /&gt;&lt;BR /&gt;diff the two files&lt;BR /&gt;&lt;BR /&gt;dir is an alias for us that does an ll -d&lt;BR /&gt;&lt;BR /&gt;If its a paticular file, then use ll -R instead of dir&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 11 Jun 2004 15:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303156#M184152</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-11T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303157#M184153</link>
      <description>If you just want to know about the perms on the directories, you could do a:&lt;BR /&gt;&lt;BR /&gt;find /dir1 -type d -exec ls -ald {} \; &amp;gt; /tmp/dir1&lt;BR /&gt;&lt;BR /&gt;find /dir2 -type d -exec ls -ald {} \; &amp;gt; /tmp/dir2&lt;BR /&gt;&lt;BR /&gt;then do a:&lt;BR /&gt;&lt;BR /&gt;diff /tmp/dir1 /tmp/dir2&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2004 15:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303157#M184153</guid>
      <dc:creator>Ken Penland_1</dc:creator>
      <dc:date>2004-06-11T15:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303158#M184154</link>
      <description>If you can narrow down your criteria in differences or some file attributes like name, ownership, permissions etc, you can generate two lists on both machines using a find command in combination mode,&lt;BR /&gt;eg: for files starting with abc* and permissions 644&lt;BR /&gt;# find . -name "abc*" -a -perm 0644 -exec ls -l {} \; &amp;gt; /tmp/a1&lt;BR /&gt;&lt;BR /&gt;or for files owned by abc and permissions 600,&lt;BR /&gt;# find . -owner abc -a -perm 0644 -exec ls -l {} \; &amp;gt; /tmp/a1&lt;BR /&gt;&lt;BR /&gt;Then comapre the outputs from both machines by  sdiff.&lt;BR /&gt;to help the sdiff, just filter out the filelds with differences and probable do a sort before doing an sdiff.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Abdul.</description>
      <pubDate>Fri, 11 Jun 2004 15:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303158#M184154</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-11T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303159#M184155</link>
      <description>I would recommend you get the utility "els"-&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Users/els-1.48a/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Users/els-1.48a/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;This provides an extended ls utility which is easier to use with scripts.&lt;BR /&gt; &lt;BR /&gt;Then do a list on the first directory-&lt;BR /&gt;cd /first/directory&lt;BR /&gt;/opt/els/bin/els -R +f':' +TI +G"F':1:'PUGsm" &amp;gt;/tmp/l1&lt;BR /&gt; &lt;BR /&gt;Then do a list on the second-&lt;BR /&gt;cd /first/directory&lt;BR /&gt;/opt/els/bin/els -R +f':' +TI +G"F':2:'PUGsm" &amp;gt;/tmp/l2&lt;BR /&gt; &lt;BR /&gt;Then run both through sort and uniq-&lt;BR /&gt;sort /tmp/l1 /tmp/l2 | sort -u &amp;gt;/tmp/notsame&lt;BR /&gt; &lt;BR /&gt;The sort/uniq combination will filter out those files that are the same between the 2 directorites. What is left are files that exist in only one of the directories and files whose permission/uid/gid/size aren't the same.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 11 Jun 2004 16:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303159#M184155</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-06-11T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare to directory structures</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303160#M184156</link>
      <description>oops-&lt;BR /&gt; &lt;BR /&gt;Should have been-&lt;BR /&gt; &lt;BR /&gt;sort /tmp/l1 /tmp/l2 | uniq -u &amp;gt;/tmp/notsame&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 11 Jun 2004 17:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compare-to-directory-structures/m-p/3303160#M184156</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-06-11T17:01:18Z</dc:date>
    </item>
  </channel>
</rss>

