home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 July / PCWorld_2000-07_cd.bin / Software / Vyzkuste / MicroTel / DDESAM / DDETEST.SH < prev   
Linux/UNIX/POSIX Shell Script  |  1999-03-09  |  4KB  |  98 lines

  1. #!/bin/ksh
  2. ###############################################################################
  3. # ddetest.sh                                                                  #
  4. # Pomocny script programu DDESAM-simulace textove sestavy                     #
  5. ###############################################################################
  6.  
  7. if [ "$OSTYPE" = "Linux" ]; then
  8.   echo "\033]@ddesam.exe@"
  9. else
  10.   echo "\033]ddesam.exe@"                            
  11. fi                              
  12.  
  13.  
  14. echo "\033[37;40m"
  15. clear
  16. count=1
  17. while [ $count -gt 0 ]
  18. do
  19. if [ $count -eq 1 ]
  20. then
  21.   clear
  22.   echo ""
  23.   echo ""
  24.   echo "                                  ACME Inc."
  25.   echo "                   \033[1;31mObrat poboƒek - Leden 1998 - Software\033[0;37m"
  26.   echo "                   -------------------------------------"
  27.   echo ""
  28.   echo "                Poboƒka                           Obrat"
  29.   echo "                -------                           ---------"
  30.   echo ""
  31.   echo "                \033[1;32mPraha\033[0;37m                             9 500 000"
  32.   echo "                \033[1;32mPlzeσ\033[0;37m                             3 800 000"
  33.   echo "                \033[1;32mOlomouc\033[0;37m                           2 350 000"
  34.   echo "                \033[1;32mOstrava\033[0;37m                           3 560 000"
  35.   echo "                \033[1;32mBratislava\033[0;37m                        3 330 000"
  36.   echo ""
  37.   echo ""
  38.   echo "S"
  39. else
  40.   if [ $count -eq 2 ]
  41.   then
  42.  
  43.     clear
  44.     echo ""
  45.     echo ""
  46.     echo "                                  ACME Inc."
  47.     echo "                   \033[1;32mObrat poboƒek - Leden 1998 - Hardware\033[0;37m"
  48.     echo "                   -------------------------------------"
  49.     echo ""
  50.     echo "                Poboƒka                           Obrat"
  51.     echo "                -------                           ---------"
  52.     echo ""
  53.     echo "                \033[1;32mPraha\033[0;37m                             9 000 000"
  54.     echo "                \033[1;32mPlzeσ\033[0;37m                             1 800 000"
  55.     echo "                \033[1;32mOlomouc\033[0;37m                           1 350 000"
  56.     echo "                \033[1;32mOstrava\033[0;37m                           1 560 000"
  57.     echo "                \033[1;32mBratislava\033[0;37m                        1 330 000"
  58.     echo ""
  59.     echo ""
  60.     echo "H"
  61.   else
  62.  
  63.     clear
  64.     echo ""
  65.     echo ""
  66.     echo "                                  ACME Inc."
  67.     echo "                   \033[1;35mObrat poboƒek - Leden 1998 - Sluºby\033[0;37m"
  68.     echo "                   -----------------------------------"
  69.     echo ""
  70.     echo "                Poboƒka                           Obrat"
  71.     echo "                -------                           ---------"
  72.     echo ""
  73.     echo "                \033[1;32mPraha\033[0;37m                             5 440 000"
  74.     echo "                \033[1;32mPlzeσ\033[0;37m                             1 840 000"
  75.     echo "                \033[1;32mOlomouc\033[0;37m                           1 220 000"
  76.     echo "                \033[1;32mOstrava\033[0;37m                           1 440 000"
  77.     echo "                \033[1;32mBratislava\033[0;37m                        1 050 000"
  78.     echo ""
  79.     echo ""
  80.     echo "C"
  81.   fi
  82. fi
  83. echo ""
  84. echo "                Moºnosti: \033[1;33mS\033[0;37m-software   \033[1;33mH\033[0;37m-hardware   \033[1;33mC\033[0;37m-sluºby"
  85. echo "                          \033[1;33mX\033[0;37m-konec"
  86. read db rest
  87. case $db in
  88. [S])     count=1 ;;
  89. [H])    count=2 ;;
  90. [C])    count=3 ;;
  91. [X])    count=0    ;;
  92. esac
  93. done
  94. clear
  95.  
  96.  
  97.  
  98.