prompt for input bash code example
Example 1: shell promt user input
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
Example 2: bash read input
echo "Synchronize repositories? Y/N"
read ANSWER
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
echo "Synchronize repositories? Y/N"
read ANSWER