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