The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-18-2009
arunsoman80 arunsoman80 is offline
Registered User
  
 

Join Date: Jul 2008
Location: New York
Posts: 45
I'm just a starter in UNIX Scripting but think you could try the following:
1. Reason why it doesn't read the last line might be due to missing newline. Open your text file again in VI editor and save and quit using ":wq". That will take care of the newline character issue.
2. In the IF-ELSE block, instead of using "=" try using "==" or "-eq"
3. Put the whole code in a while loop. Use some flag say gotoMenu = true and keep going back to MENU till the flag is set to FALSE.

Hope this helps.

regards,
Arun.