Write a shell script that requests the user's age and then echoes it, along with some suitable comment.



Write a shell script that requests the user's age and then echoes it, along with some suitable ..

Answer / Gautam Kumar Singh

Here is a simple shell script that does this:nnecho -n "Enter your age: "; read age;necho "You are $age years old."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

Explain what is inode?

1 Answers  


How do I check disk space in unix?

1 Answers  


Is unix only for supercomputers?

1 Answers  


how to find multiple string?

4 Answers   Accenture, POL,


What is unix language?

1 Answers  


Explain file system in unix.

1 Answers  


How to display n-th line of a file in Unix?

1 Answers  


Does windows 10 have unix?

1 Answers  


How to terminate a shell script if statement?

1 Answers  


What are the requirements for a swapper to work?

1 Answers  


Is unix multiuser?

1 Answers  


What are the core concepts of unix

1 Answers  


Categories