The read statement

Use to get input (data from user) from keyboard and store (data) to variable.
Syntax: 
read variable1, variable2,…variableN

 

eg:

#!/bin/sh

echo “Enter your name please”

read fname

echo “Welcome $fname”

1 Comment

  1. This is used in direct access files only. This is another branching option with the READ statement.

Leave a Reply

Your email address will not be published.

*

© 2017 My techbook

Theme by Anders NorénUp ↑