get input from command line in bash file code example Example: bash read input echo "Synchronize repositories? Y/N" read ANSWER