<?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: sdiff script help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697008#M103202</link>
    <description>The actual directories have many, many subdirectories.&lt;BR /&gt;Will this make a difference, dont have access to the servers right now to try out your suggestions?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
    <pubDate>Thu, 22 Dec 2005 14:57:48 GMT</pubDate>
    <dc:creator>SM_3</dc:creator>
    <dc:date>2005-12-22T14:57:48Z</dc:date>
    <item>
      <title>sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697003#M103197</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I need to scripting help, I'm usless at scripting.&lt;BR /&gt;&lt;BR /&gt;I'd like a script that comapres files in 1 directory with another directory.&lt;BR /&gt;Would it be possible to port such a script across different unix flavours?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 22 Dec 2005 13:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697003#M103197</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2005-12-22T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697004#M103198</link>
      <description>First take a look at "man dircmp" to see if that doesn't do what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 22 Dec 2005 13:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697004#M103198</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-12-22T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697005#M103199</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;See the manpages for 'diff'.  This will compare and report the differences for files or files within two directories.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 22 Dec 2005 13:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697005#M103199</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-22T13:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697006#M103200</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;If you truly mean 'sdiff' have a look too at its manpages too.  Both 'diff' and 'sdiff' are generalized to UNIX.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90689/diff.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90689/diff.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90690/sdiff.1.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90690/sdiff.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 22 Dec 2005 13:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697006#M103200</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-22T13:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697007#M103201</link>
      <description>If you are only looking to compare file names, then maybe the following-&lt;BR /&gt; &lt;BR /&gt;ls /dir1 &amp;gt;/tmp/f1&lt;BR /&gt;ls /dir2 &amp;gt;/tmp/f2&lt;BR /&gt;comm -23    ; # display names in /dir1 but not /dir2&lt;BR /&gt;comm -13    ; # display names in /dir2 but not /dir1&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 22 Dec 2005 13:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697007#M103201</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-12-22T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697008#M103202</link>
      <description>The actual directories have many, many subdirectories.&lt;BR /&gt;Will this make a difference, dont have access to the servers right now to try out your suggestions?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 22 Dec 2005 14:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697008#M103202</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2005-12-22T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697009#M103203</link>
      <description>man dircmp&lt;BR /&gt;&lt;BR /&gt; NAME&lt;BR /&gt;      dircmp - directory comparison&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      dircmp [-d] [-s] [-wn] dir1 dir2&lt;BR /&gt;&lt;BR /&gt; DESCRIPTION&lt;BR /&gt;      dircmp examines dir1 and dir2 and generates various tabulated&lt;BR /&gt;      information about the contents of the directories.  Sorted listings of&lt;BR /&gt;      files that are unique to each directory are generated for all the&lt;BR /&gt;      options.  If no option is entered, a sorted list is output indicating&lt;BR /&gt;      whether the filenames common to both directories have the same&lt;BR /&gt;      contents.&lt;BR /&gt;&lt;BR /&gt;           -d      Compare the contents of files with the same name in both&lt;BR /&gt;                   directories and output a list telling what must be&lt;BR /&gt;                   changed in the two files to bring them into agreement.&lt;BR /&gt;                   The list format is described in diff(1).&lt;BR /&gt;&lt;BR /&gt;           -s      Suppress messages about identical files.&lt;BR /&gt;&lt;BR /&gt;           -wn     Change the width of the output line to n characters.  The&lt;BR /&gt;                   default width is 72.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Dec 2005 05:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697009#M103203</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2005-12-23T05:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: sdiff script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697010#M103204</link>
      <description>If you have many servers that are suppose to have the same directory structure and you are looking for discrepencies, then a perl script would provide you the most power. (Assuming you have openssh installed and have configured all your servers).&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;@servers=qw/moe larry curly/;&lt;BR /&gt;foreach $server (@servers) {&lt;BR /&gt;open(INP,"ssh $server 'find /yourdir -print|'");&lt;BR /&gt;while(&lt;INP&gt;) {&lt;BR /&gt;chomp;&lt;BR /&gt;push(@{$hold{$_},$server);&lt;BR /&gt;}&lt;BR /&gt;close(INP);&lt;BR /&gt;}&lt;BR /&gt;foreach $dir (sort keys %hold) {&lt;BR /&gt;printf "%40s %s\n",$dir,join(",",@{$hold{$dir}});&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;This will list all the files and the servers they reside on. You could modify the script to only display those files that are not on all the servers.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills&lt;/INP&gt;</description>
      <pubDate>Fri, 23 Dec 2005 11:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sdiff-script-help/m-p/3697010#M103204</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-12-23T11:40:42Z</dc:date>
    </item>
  </channel>
</rss>

