read.sh 210 B

123456789101112
  1. #!/bin/bash
  2. echo 'Start.'
  3. read -p 'Enter your name : ' name
  4. echo "Hello dear $name"
  5. read -p 'Enter your code : ' -t 2 code
  6. if [ -z $code ]
  7. then
  8. echo 'Too late.'
  9. else
  10. echo 'Fast ! Your entry :'
  11. echo $code
  12. fi