get input from user in bash script code example
Example 1: how to take input in bash
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
Example 2: Select the command to read the input from the User in shell scripting?
read <variable>
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
read <variable>