DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

How do you take a single line of input from the user in a shell script?

By: rekha singh | 18 Jun 2010 12:59 pm

 How do you take a single line of input from the user in a shell script?

 

Comments

you can try this:-

 
read var
 
where var is the variable name and it will store one line to this var variable and you can use this further in your string.
 
I hope it will help you out.
 
By: rekha singh | 18 Jun 2010

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move