<?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: help with this script requirement in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520312#M366909</link>
    <description>Hello,&lt;BR /&gt;why not use the rcs feature between version?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
    <pubDate>Mon, 26 Oct 2009 07:52:59 GMT</pubDate>
    <dc:creator>Arturo Galbiati</dc:creator>
    <dc:date>2009-10-26T07:52:59Z</dc:date>
    <item>
      <title>help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520306#M366903</link>
      <description>The main aim of this script is to find a diff between old code file and new code file , and merge the new code into the old code.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2009 15:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520306#M366903</guid>
      <dc:creator>sapna.sun</dc:creator>
      <dc:date>2009-10-23T15:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520307#M366904</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The first part is easy if the code is in a text file.&lt;BR /&gt;&lt;BR /&gt;diff &lt;FILE1&gt; &lt;FILE2&gt;&lt;BR /&gt;&lt;BR /&gt;You can route that into a file and take actions to insert the code into a new file with tools like sed&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/FILE2&gt;&lt;/FILE1&gt;</description>
      <pubDate>Fri, 23 Oct 2009 15:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520307#M366904</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-10-23T15:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520308#M366905</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Have a look at the manpages for 'diff' :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/diff.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/diff.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are even examples for you therein.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 23 Oct 2009 16:14:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520308#M366905</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-23T16:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520309#M366906</link>
      <description>sapna,&lt;BR /&gt;You can use # sdiff -b oldcode newcode  &lt;BR /&gt;view the difference and parse that output &amp;amp; combine a new file with updated code.&lt;BR /&gt;&lt;BR /&gt;Check this out if you are looking something like this:,&lt;BR /&gt;&lt;A href="http://bash.cyberciti.biz/file-management/send-http-code-301-moved-permanently-redirection/" target="_blank"&gt;http://bash.cyberciti.biz/file-management/send-http-code-301-moved-permanently-redirection/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have any example it would be great, &lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 23 Oct 2009 16:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520309#M366906</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-23T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520310#M366907</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;In keeping with the Perl philosophy that "There Is More Than One Way To Do It" (TIMTOWTDI) I should add that you can use the output of 'diff' with the 'ed' command (as documented in the 'diff' manpages) _OR_ you can use the 'patch' utility, written by Larry Walls --- the creator of Perl itself.&lt;BR /&gt;&lt;BR /&gt;Consider these two files:&lt;BR /&gt;&lt;BR /&gt;# cat ./f1&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;[ "$#" = 0 ] &amp;amp;&amp;amp; echo "arg required"&lt;BR /&gt;echo "you passed: '$@'"&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# cat ./f2&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;[ "$#" = 0 ] &amp;amp;&amp;amp; { echo "arg required"; exit 1; }&lt;BR /&gt;echo "you passed: '$@'"&lt;BR /&gt;echo "nice work..."&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Now create a patch from the differences of the files:&lt;BR /&gt;&lt;BR /&gt;# diff -e f1 f2 &amp;gt; mypatch&lt;BR /&gt;&lt;BR /&gt;...add a "w"rite command for use with 'ed':&lt;BR /&gt;&lt;BR /&gt;# echo w &amp;gt;&amp;gt; mypatch&lt;BR /&gt;# cp f1 f1.old&lt;BR /&gt;# ed f1 &amp;lt; mypatch&lt;BR /&gt;&lt;BR /&gt;The 'f1' file is now identical to 'f2'.&lt;BR /&gt;&lt;BR /&gt;Another way is to use 'patch'.  Begin again using the original 'f1' and 'f2' files in this example:&lt;BR /&gt;&lt;BR /&gt;# diff -e f1 f2 &amp;gt; mypatch #...as before...&lt;BR /&gt;# UNIX95= patch -e -i mypatch -o f1.new f1&lt;BR /&gt;&lt;BR /&gt;Now you have a modified copy of 'f1' as 'f1.new' which matches 'f2'.  Notice that no "w" character was appended to the 'mypatch' file created by 'diff' when the objective was to use 'patch'.&lt;BR /&gt;&lt;BR /&gt;Notice too, that we set UNIX95 (XPG4) behavior to use the '-i' option of 'patch'.  There is whitespace after the "UNIX95=" and before the "patch" command.  There is no semicolon!  This keeps UNIX95 set only for the duration of the command line.  To do otherwise may lead to behavior your don't expect.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2009 21:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520310#M366907</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-23T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520311#M366908</link>
      <description>HI (again):&lt;BR /&gt;&lt;BR /&gt;Oops, the author of 'patch' and the author or Perl was Larry Wall.  It is Larry Wall's work of which I spoke :-)  Never change a sentence in mid-stream without really, really proof-reading.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 23 Oct 2009 21:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520311#M366908</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-23T21:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: help with this script requirement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520312#M366909</link>
      <description>Hello,&lt;BR /&gt;why not use the rcs feature between version?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Mon, 26 Oct 2009 07:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-this-script-requirement/m-p/4520312#M366909</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2009-10-26T07:52:59Z</dc:date>
    </item>
  </channel>
</rss>

