home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 July / PCWorld_2000-07_cd.bin / Software / Vyzkuste / MicroTel / EDITFILE / EDITFILX.SH < prev    next >
Linux/UNIX/POSIX Shell Script  |  1999-03-02  |  1KB  |  31 lines

  1. #!/bin/sh                                                                      
  2. ###############################################################################
  3. # editfilx.sh                                                                 #
  4. # Script demonstruje vyuziti spec. sekvenci pro lokalni editaci souboru       # 
  5. # z Unixu.                                                                    #
  6. ###############################################################################
  7.                                                                                
  8.  
  9. DEFEDIT="notepad.exe"                                                                            
  10. if [ "$OSTYPE" = "Linux" ]; then                                               
  11.   INTPR="-e"                                                                   
  12.   SAT="@"                                                                      
  13. else                                                                           
  14.   INTPR=""                                                                     
  15.   SAT=""                                                                       
  16. fi                                                                             
  17.  
  18. echo $INTPR "\033]"$SAT"?EDITOR@"
  19. read EDITOR
  20.  
  21. if [ "$EDITOR" != "" ]; then
  22.   DEFEDIT="$EDITOR" 
  23. fi
  24.  
  25. echo $INTPR "\033]"$SAT"ftpdown.bat*2waupfd*$1@"
  26. read  a b 
  27. echo $INTPR "\033]"$SAT$DEFEDIT"*3wd*$1@"
  28. read a b 
  29. echo $INTPR "\033]"$SAT"ftpup.bat*2waupd*$1@"
  30. read a b 
  31.