<?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: Scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861102#M820802</link>
    <description>Jean-Louis Phelix,&lt;BR /&gt;&lt;BR /&gt;You were correct when you said the script was not simple, but it does exactly what I was looking for.&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick responses,&lt;BR /&gt;Brian &lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
    <pubDate>Tue, 10 Dec 2002 18:44:19 GMT</pubDate>
    <dc:creator>Brian M. Fisher</dc:creator>
    <dc:date>2002-12-10T18:44:19Z</dc:date>
    <item>
      <title>Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861098#M820798</link>
      <description>Is this something do-able in unix script?&lt;BR /&gt;&lt;BR /&gt;I have a variable x.&lt;BR /&gt;I read the input for it.  Do some stuff and ask for another x.&lt;BR /&gt;&lt;BR /&gt;Can I somehow display the current value of the x and have them back space over some random number of characters and put that as the "new" value?&lt;BR /&gt;&lt;BR /&gt;An example is:&lt;BR /&gt;I prompt the user to enter a long number "x":&lt;BR /&gt;1098765432123456789&lt;BR /&gt;What I would like to do is after processing "x", print out "x" and allow them to backspace over 89 for value 90, without keying in the entire variable again.&lt;BR /&gt;i.e. 1098765432123456789 -&amp;gt; 1098765432123456790&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thanks,&lt;BR /&gt;Brian&lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 13:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861098#M820798</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2002-12-10T13:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861099#M820799</link>
      <description># perl -MMath::BigInt -MTerm::ReadLine::Perl ...</description>
      <pubDate>Tue, 10 Dec 2002 13:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861099#M820799</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-12-10T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861100#M820800</link>
      <description>This is simple and works:&lt;BR /&gt;&lt;BR /&gt;typeset test1=123456789&lt;BR /&gt;read test2?"${test1}: "&lt;BR /&gt;echo $test1&lt;BR /&gt;echo $test2&lt;BR /&gt;&lt;BR /&gt;In the script above, the test1 variable is used as a prompt.  You can select, cut and paste using your mouse, then make appropriate edits.  Then test2 gets the value you enter.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 10 Dec 2002 14:03:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861100#M820800</guid>
      <dc:creator>Tom Jackson</dc:creator>
      <dc:date>2002-12-10T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861101#M820801</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Quite complex, but using an old script I can propose you this one (not simple but it works ...). Enter a first string and then you can change it (even complete it or use backspaces).&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Tue, 10 Dec 2002 14:07:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861101#M820801</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-12-10T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861102#M820802</link>
      <description>Jean-Louis Phelix,&lt;BR /&gt;&lt;BR /&gt;You were correct when you said the script was not simple, but it does exactly what I was looking for.&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick responses,&lt;BR /&gt;Brian &lt;BR /&gt;&amp;lt;*(((&amp;gt;&amp;lt; er</description>
      <pubDate>Tue, 10 Dec 2002 18:44:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861102#M820802</guid>
      <dc:creator>Brian M. Fisher</dc:creator>
      <dc:date>2002-12-10T18:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861103#M820803</link>
      <description>I've attached a script that does what you ask, I think.  It's a little strange but hopefully the logic is easy to follow.&lt;BR /&gt;&lt;BR /&gt;Basically it takes the length of the original and the length of the new input, and uses that to create a "prefix" of the numbers that won't change, appending the new numbers to that.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 15:23:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861103#M820803</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-12-11T15:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861104#M820804</link>
      <description>With mine, you don't have to backspace...just type the new "suffix"...&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 15:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/2861104#M820804</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-12-11T15:24:53Z</dc:date>
    </item>
  </channel>
</rss>

