using $? and if-then-else


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers using $? and if-then-else
# 1  
Old 12-08-2008
MySQL using $? and if-then-else

hello all
this is a question that iam unable to solve .....can any of them help me out please

question:

tell the user to enter a user id to be searched for the /etc/passwd file.if there are no matches a message is given to the user.if there is a single match echo the user name, user id and group id

using $? and if then else


thank you
# 2  
Old 12-08-2008
and this script is using korn shell
# 3  
Old 12-08-2008
omsai_45 is posting homework or test problems.

Thread closed.

Please read the rules:

https://www.unix.com/misc.php?do=cfrules
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question