Bash return to input 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
# fullname="USER INPUT"
read -p "Enter fullname: " fullname
# user="USER INPUT"
read -p "Enter user: " user
read -p "Enter your name : " name
echo $name