Advertisement
arthur393

Exercício com gdialog

Apr 23rd, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. frase(){
  4.  
  5. }
  6.  
  7. localizarpalavra(){
  8.  
  9. }
  10.  
  11. substituir(){
  12.  
  13. }
  14.  
  15. sair(){
  16.     exit;
  17. }
  18.  
  19.  
  20. main(){
  21.      
  22. case $(gdialog --title "EX GDIALOG" --menu "Menu de Opções: " 0 0 0 a "Frase" b
  23.  
  24. "Localizar Palavra"  c "Substituir"  d "Sair" 2>&1) in
  25.            
  26.     1) frase;          
  27.     main;;
  28.            
  29.            
  30.     2)localizarpalavra;
  31.            
  32.     main;;
  33.            
  34.     3)substituir;
  35.            
  36.     main;;
  37.            
  38.            
  39.     4) sair
  40.             ;;
  41.            
  42.            
  43.     *) echo "impossivel"
  44.            
  45.     main;;
  46.      
  47.      
  48.     esac
  49.      
  50.      
  51.      
  52.     }
  53.        
  54.    
  55.  
  56.     main;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement