<?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: Shell Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315947#M876653</link>
    <description>It depends upon which character you program is actually expecting.&lt;BR /&gt;&lt;BR /&gt;Note the the echo command normally terminates with a LF unless you specifically override this behavior by ending the echo command with "\c"&lt;BR /&gt;&lt;BR /&gt;To emit a single CR use "\r" followed by "\c"&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;echo "\r\c"&lt;BR /&gt;&lt;BR /&gt;because normally CR's are converted to NL's (you can determine this by doing a stty -a to see if icrnl is set) you can choose to either send a string of CR's or simply (and more conveniently use echo's without \c to emit the NL's for you.&lt;BR /&gt;&lt;BR /&gt;About as simple as it gets is &lt;BR /&gt;echo "\n\n\n\n\n\n"&lt;BR /&gt;&lt;BR /&gt;That will emit 7 NL's (the 6 explicit + the 1 implicit because we did not end the command with "\c".&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 25 Jun 2004 16:30:48 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-06-25T16:30:48Z</dc:date>
    <item>
      <title>Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315946#M876652</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;I need to write a shell script, (in vi), I have to put line feed or carage return character within the script.&lt;BR /&gt;Basically the purpose is not to have interaction with the user (replies), whereas go on the default behaviour.&lt;BR /&gt;I just need to put "ENTER" 7 times in my script, which character should I use, either I have to write, decimal, octal or hexadeciaml.&lt;BR /&gt;Can't work, you people help will highly be appreciated.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 16:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315946#M876652</guid>
      <dc:creator>Syed F Hashim</dc:creator>
      <dc:date>2004-06-25T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315947#M876653</link>
      <description>It depends upon which character you program is actually expecting.&lt;BR /&gt;&lt;BR /&gt;Note the the echo command normally terminates with a LF unless you specifically override this behavior by ending the echo command with "\c"&lt;BR /&gt;&lt;BR /&gt;To emit a single CR use "\r" followed by "\c"&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;echo "\r\c"&lt;BR /&gt;&lt;BR /&gt;because normally CR's are converted to NL's (you can determine this by doing a stty -a to see if icrnl is set) you can choose to either send a string of CR's or simply (and more conveniently use echo's without \c to emit the NL's for you.&lt;BR /&gt;&lt;BR /&gt;About as simple as it gets is &lt;BR /&gt;echo "\n\n\n\n\n\n"&lt;BR /&gt;&lt;BR /&gt;That will emit 7 NL's (the 6 explicit + the 1 implicit because we did not end the command with "\c".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 16:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315947#M876653</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-06-25T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315948#M876654</link>
      <description>Carriage return character is 0D ( in hexadecimal). Linefeed is 0A. These display as ^M ( carriage return ) and ^J ( linefeed).&lt;BR /&gt;&lt;BR /&gt;With vi, to enter a literal carriage return or linefeed into a text file, use the key sequence: control-V control-M&lt;BR /&gt;for carriage return.&lt;BR /&gt;&lt;BR /&gt;use control-V control-J&lt;BR /&gt;for linefeed.</description>
      <pubDate>Fri, 25 Jun 2004 16:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315948#M876654</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2004-06-25T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315949#M876655</link>
      <description>Hi,&lt;BR /&gt;Just add:&lt;BR /&gt;read&lt;BR /&gt;in your script as many times you want your script to wait for &lt;ENTER&gt; Key.&lt;BR /&gt;This will wait till the user hit's Enter key.&lt;BR /&gt;&lt;BR /&gt;If you want to add Carraige Return without anybodies intervention then just add:&lt;BR /&gt;echo "\n" &lt;BR /&gt;as many time you want in your script.&lt;BR /&gt;&lt;BR /&gt;That should work.&lt;BR /&gt;Regards,&lt;/ENTER&gt;</description>
      <pubDate>Sat, 26 Jun 2004 07:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315949#M876655</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-06-26T07:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315950#M876656</link>
      <description>echo "\n" should work&lt;BR /&gt;&lt;BR /&gt;Also &lt;BR /&gt;&lt;BR /&gt;echo "CTRL+V+M" &amp;gt;&amp;gt;filename #Kornshell am not sure if it works in posix&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;</description>
      <pubDate>Sat, 26 Jun 2004 10:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315950#M876656</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-06-26T10:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315951#M876657</link>
      <description>Thanks a lot Gurus:&lt;BR /&gt;&lt;BR /&gt;The solutions echo "\n\n\n" works.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help.</description>
      <pubDate>Mon, 28 Jun 2004 08:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315951#M876657</guid>
      <dc:creator>Syed F Hashim</dc:creator>
      <dc:date>2004-06-28T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315952#M876658</link>
      <description>Hi Syed,&lt;BR /&gt;Nice to see that your problem got solved. I think you are new to forum, go thr' the link below about assigning points to the replies you got.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?admit=716493758+1085211538437+28353475#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?admit=716493758+1085211538437+28353475#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All the best.&lt;BR /&gt;Keep forumming.&lt;BR /&gt;Regards,</description>
      <pubDate>Mon, 28 Jun 2004 08:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3315952#M876658</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-06-28T08:14:30Z</dc:date>
    </item>
  </channel>
</rss>

