Thread: Address book
View Single Post
  #2   (View Single Post)  
Old 5th July 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Generally I would rather create a while/readline loop, so the script will not end its work, like:

Code:
while :
do
  echo "what: " 
  read CHOICE
  case ${CHOICE} in
    (yes)
      # DO 1
      ;;
    (no)
      # DO 2
      ;;
    (exit|end)
      # END
      break
    (*)
      continue
      ;;
  esac
done
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote