![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hardware assistance | paulbryant | SUN Solaris | 4 | 05-27-2008 01:15 PM |
| Command assistance | kmuir | UNIX for Dummies Questions & Answers | 0 | 02-26-2008 11:59 PM |
| I need an assistance | mytilini boy | Shell Programming and Scripting | 1 | 05-25-2007 08:42 PM |
| KSH Script Assistance | Brusimm | Shell Programming and Scripting | 3 | 05-10-2007 08:15 AM |
| Need Assistance | yahoo14 | UNIX for Dummies Questions & Answers | 1 | 06-08-2006 10:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
While Loop assistance.
I am trying to make a simple while loop which reads in a text until the person types quit. And it's not working, and I know it's a rather simple problem I just can't seem to understand... Once again all assistance is greatly appreciated.
#!/bin/sh astring="z" while astring!="quit" do read astring if astring="z" then astring="hello my name is Gsmith and I have 5 dollars" echo $astring else echo "Never again" fi done |
|
||||
|
Once again you've saved my day!
yes that was in fact the problem... odd how that worked. I will have to mind my variables much closer. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|