how to get input from user in bash 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>