regarding problem 1. i found out that in order to get the variable name i need to build "if" line on $1 but how do i check that $1 begins with an alphabetic character (a-z and A-Z, or _), followed by zero or more alphanumeric (alphabetic and digits) or _ characters??
regarding problem 2. there may be lots of words i cant predict how many echo $1 echo $2 etc..
how do i solve it??
Joined: Dec 07, 2007
i also got this tips from other sources if anbod can explain them further
for question 1:
Compose a regular expression that matches a valid variable name, then use grep and check its exit status
for question 2:
use for loop and $* variable to print all the script's arguments; to calculate the arguments number, use expr in back quotes (` �`)
i am realy new to this stuff i dont know how to build this please help