<?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 &amp;quot;diff&amp;quot; command with variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519498#M651410</link>
    <description>Is there a way to use the diff command with variables?&lt;BR /&gt;&lt;BR /&gt;x=string 1 0&lt;BR /&gt;y=string 1 2&lt;BR /&gt;diff $x $y&lt;BR /&gt;&lt;BR /&gt;the diff doesn't work.....&lt;BR /&gt;usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2&lt;BR /&gt;                diff [-C n ] [ -bcefhintw ] file1 file2&lt;BR /&gt;                diff [ -D string ] [ -biw ] file1 file2&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Oct 2009 16:20:16 GMT</pubDate>
    <dc:creator>dev44</dc:creator>
    <dc:date>2009-10-22T16:20:16Z</dc:date>
    <item>
      <title>"diff" command with variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519498#M651410</link>
      <description>Is there a way to use the diff command with variables?&lt;BR /&gt;&lt;BR /&gt;x=string 1 0&lt;BR /&gt;y=string 1 2&lt;BR /&gt;diff $x $y&lt;BR /&gt;&lt;BR /&gt;the diff doesn't work.....&lt;BR /&gt;usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2&lt;BR /&gt;                diff [-C n ] [ -bcefhintw ] file1 file2&lt;BR /&gt;                diff [ -D string ] [ -biw ] file1 file2&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2009 16:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519498#M651410</guid>
      <dc:creator>dev44</dc:creator>
      <dc:date>2009-10-22T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: "diff" command with variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519499#M651411</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As the usage of 'diff' clearly shows, you need to specify two FILES.  If you want to compare strings use the shell's 'test':&lt;BR /&gt;&lt;BR /&gt;# X="string 1 0"&lt;BR /&gt;# Y="string 1 2"&lt;BR /&gt;# [ "${X}" = "${Y}" ] &amp;amp;&amp;amp; echo "equal" || echo "not equal"&lt;BR /&gt;not equal&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2009 16:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519499#M651411</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-22T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: "diff" command with variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519500#M651412</link>
      <description>dev, (?)&lt;BR /&gt;&lt;BR /&gt;What is the really problem you are trying to solve?&lt;BR /&gt;What are you looking to get out of the difference command that a simple SHELL string compare can not offer?&lt;BR /&gt;- Specific output format?&lt;BR /&gt;- Your example does not show any switched, but were there options you intended to activate?&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2009 19:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-diff-quot-command-with-variables/m-p/4519500#M651412</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-10-22T19:21:59Z</dc:date>
    </item>
  </channel>
</rss>

