The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Case Statement
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 04-01-2004
Zeta_Acosta Zeta_Acosta is offline
Registered User
 

Join Date: Mar 2004
Posts: 14
Angry Case Selection (again)!

Can anyone please help me (again) with this statement:

*'**'*)
echo Cannot have more than 1 asterisk
exit
;;

As you can tell its supposed to drop out if there is more than 1 asterisk, but it doesnt!

Many thanks.

Also can anyone tell me what the structure of these statements are eg I know that * selects the whole string and ? selects a char. But how do I check if there are less than 2 parameters in my statements or if the parameter has to have a dot within the string!

Thank you all so very much (I'm beginning to tear my hair out)!
Reply With Quote