<?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: script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729764#M254347</link>
    <description>Enter user name&lt;BR /&gt;read NAME&lt;BR /&gt;&lt;BR /&gt;while [ NAME = "" ] &lt;BR /&gt;do&lt;BR /&gt;echo -n "Its null, Enter a Name: "&lt;BR /&gt;read a&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Mon, 13 Feb 2006 00:51:46 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-02-13T00:51:46Z</dc:date>
    <item>
      <title>script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729760#M254343</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am using the following two lines in one of my script&lt;BR /&gt;&lt;BR /&gt;Enter user name&lt;BR /&gt;read NAME&lt;BR /&gt;&lt;BR /&gt;I want to stop entering null value. If someone enters enter without giving character then i want to echo a warning.&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Feb 2006 18:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729760#M254343</guid>
      <dc:creator>Khashru</dc:creator>
      <dc:date>2006-02-12T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729761#M254344</link>
      <description>Something like this ought to work.....&lt;BR /&gt;&lt;BR /&gt;if [[ ${NAME} = "" ]] ; then&lt;BR /&gt;echo "you must enter something"&lt;BR /&gt;fi</description>
      <pubDate>Sun, 12 Feb 2006 18:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729761#M254344</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-02-12T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729762#M254345</link>
      <description>&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;/mnt/root # cat x&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;a=""&lt;BR /&gt;while [ "${a}" = "" ] &lt;BR /&gt;do&lt;BR /&gt;echo -n "Please enter name : "&lt;BR /&gt;read a&lt;BR /&gt;done&lt;BR /&gt;echo "---&amp;gt; $a &amp;lt;----"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please be sure to check some basic shell programming books of web pages.&lt;BR /&gt;Pretty much the  very question you asked is answerred in one that popped up with google: +unix +sh +while:&lt;BR /&gt;&lt;A href="http://steve-parker.org/sh/loops.shtml" target="_blank"&gt;http://steve-parker.org/sh/loops.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Feb 2006 20:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729762#M254345</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-02-12T20:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729763#M254346</link>
      <description>Use as,&lt;BR /&gt;&lt;BR /&gt;echo "Enter User Name"&lt;BR /&gt;read NAME&lt;BR /&gt;&lt;BR /&gt;if [[ -z ${NAME} ]]&lt;BR /&gt;then&lt;BR /&gt;  echo "User name is null. Enter it."&lt;BR /&gt;fi</description>
      <pubDate>Mon, 13 Feb 2006 00:45:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729763#M254346</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-13T00:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729764#M254347</link>
      <description>Enter user name&lt;BR /&gt;read NAME&lt;BR /&gt;&lt;BR /&gt;while [ NAME = "" ] &lt;BR /&gt;do&lt;BR /&gt;echo -n "Its null, Enter a Name: "&lt;BR /&gt;read a&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 13 Feb 2006 00:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729764#M254347</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-13T00:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729765#M254348</link>
      <description>Hi,&lt;BR /&gt;read NAME"?Enter user name "&lt;BR /&gt;if [[ -z $NAME ]] ; then&lt;BR /&gt;echo "you must enter something"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 15 Feb 2006 04:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3729765#M254348</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-02-15T04:07:29Z</dc:date>
    </item>
  </channel>
</rss>

