Bash – User Input

User Input In Bash Linux read command is used for interactive user input in bash scripts. This is helpful for taking input from users at runtime. Syntax: read [options] variable_name Example 1: There is no need to specify any datatype for the variables with the read operation. This simply takes an input of any data type values. Try with a sample command. Open bash shell terminal and type following command. read myvar The above command will wait for user input. so just type anything and press enter. Let’s create a…

Read More