get input shell script code example
Example 1: how to take input in bash
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
Example 2: how to read from keyboard in bash and store in a variable
#!/bin/bash
read -p "Enter your name : " name
echo "Hi, $name. Let us be friends!"
Example 3: Select the command to read the input from the User in shell scripting?
read <variable>