<?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 help needed in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747335#M1805</link>
    <description>I doubt that this is the simplest soultion or a solution at all. If you do not know the whole script you cannot know, if it would run in a csh (most OS scripts are written in bourne-sh to be compatible with almost everything).&lt;BR /&gt;&lt;BR /&gt;You can try to alias the echo command like:&lt;BR /&gt;alias echo="echo -e "&lt;BR /&gt;this runs fine in a linux bash.&lt;BR /&gt;&lt;BR /&gt;This is my favorite solution to test foreign scripts.&lt;BR /&gt;&lt;BR /&gt;Heiner</description>
    <pubDate>Fri, 30 Aug 2002 11:51:38 GMT</pubDate>
    <dc:creator>Heiner E. Lennackers</dc:creator>
    <dc:date>2002-08-30T11:51:38Z</dc:date>
    <item>
      <title>Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747330#M1800</link>
      <description>I pulled a shell script from HP-UX and it doesn't display right under Linux.  &lt;BR /&gt;&lt;BR /&gt;What is the equivalent "new line" and "tab" entries for Linux since the backslash entries show explicitly under Linux?&lt;BR /&gt;&lt;BR /&gt;In this sample below, all of my \n and \t's show up.&lt;BR /&gt;=========================&lt;BR /&gt;echo "\n\n"&lt;BR /&gt;echo "\t\tSelect the database that you would like to use:"&lt;BR /&gt;echo "\n"&lt;BR /&gt;echo "\t\t\t[1] Colorado Springs\n"&lt;BR /&gt;echo "\t\t\t[2] Tucson"&lt;BR /&gt;=========================&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jun 2002 18:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747330#M1800</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2002-06-18T18:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747331#M1801</link>
      <description>The echo command is different in bash. Use the -e option to enable special characters.&lt;BR /&gt;&lt;BR /&gt;echo -e "\n\n"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jun 2002 19:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747331#M1801</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-06-18T19:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747332#M1802</link>
      <description>Or use the printf command (formatted print).  I believe it is perfered under linux.  Your script above will work fine by changing all instances of echo to printf.  With printf, however, a carriage return is not implied and therefore you would want to append another newline call after Tuscon or the command prompt will appear on this line.&lt;BR /&gt;&lt;BR /&gt;Che'</description>
      <pubDate>Wed, 19 Jun 2002 12:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747332#M1802</guid>
      <dc:creator>Che Cordes</dc:creator>
      <dc:date>2002-06-19T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747333#M1803</link>
      <description>IMHO, the most elegant solution is to use a here document in the script - where all characters between the '!' marks are cat(1)ed to stdout ad verbatim - as follows:&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&amp;lt; !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Select the database that you would like to use:&lt;BR /&gt;&lt;BR /&gt;[1] Colorado Springs&lt;BR /&gt;[2] Tucson&lt;BR /&gt;========================= &lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;DP</description>
      <pubDate>Thu, 29 Aug 2002 12:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747333#M1803</guid>
      <dc:creator>Dave Pointon</dc:creator>
      <dc:date>2002-08-29T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747334#M1804</link>
      <description>The simplest solution is to add:&lt;BR /&gt;&lt;BR /&gt;#!/bin/csh&lt;BR /&gt;&lt;BR /&gt;as the first line of the script.  The 'c' shell interprets these characters correctly and you won't have to search for every instance of the echo command.</description>
      <pubDate>Thu, 29 Aug 2002 18:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747334#M1804</guid>
      <dc:creator>James Brandvold</dc:creator>
      <dc:date>2002-08-29T18:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script help needed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747335#M1805</link>
      <description>I doubt that this is the simplest soultion or a solution at all. If you do not know the whole script you cannot know, if it would run in a csh (most OS scripts are written in bourne-sh to be compatible with almost everything).&lt;BR /&gt;&lt;BR /&gt;You can try to alias the echo command like:&lt;BR /&gt;alias echo="echo -e "&lt;BR /&gt;this runs fine in a linux bash.&lt;BR /&gt;&lt;BR /&gt;This is my favorite solution to test foreign scripts.&lt;BR /&gt;&lt;BR /&gt;Heiner</description>
      <pubDate>Fri, 30 Aug 2002 11:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-script-help-needed/m-p/2747335#M1805</guid>
      <dc:creator>Heiner E. Lennackers</dc:creator>
      <dc:date>2002-08-30T11:51:38Z</dc:date>
    </item>
  </channel>
</rss>

