input bash code example
Example 1: input bash
# fullname="USER INPUT"
read -p "Enter fullname: " fullname
# user="USER INPUT"
read -p "Enter user: " user
Example 2: read value in script
read -p "Enter your name : " name
echo $name
Example 3: how to take input in bash
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
Example 4: bash read input
echo "Synchronize repositories? Y/N"
read ANSWER