What is wrong with this interactive shell script? echo What month is this? read $month echo $month is as good a month as any.

Answer

Initially, the question mark should be escaped (\?) so that it is not interpreted as a shell metacharacter. Second, it should be read month, not read $month.

All unix Questions

Ask your interview questions on unix

Write Your comment or Questions if you want the answers on unix from unix Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---