shell read from input 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
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
echo "Synchronize repositories? Y/N"
read ANSWER