shell script user input code example
Example 1: shell promt user input
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
Example 2: input bash
# fullname="USER INPUT"
read -p "Enter fullname: " fullname
# user="USER INPUT"
read -p "Enter user: " user
Example 3: bash read input
echo "Synchronize repositories? Y/N"
read ANSWER
Example 4: Select the command to read the input from the User in shell scripting?
read <variable>