home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / talk / bizarre / 38673 < prev    next >
Encoding:
Text File  |  1992-11-18  |  981 b   |  37 lines

  1. Newsgroups: talk.bizarre
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!gerald!gerald
  3. From: gerald@torolab4.vnet.ibm.com (Gerald Oskoboiny)
  4. Subject: short shameful shell shcript
  5. Originator: gerald@gerald
  6. Sender: @watson.ibm.com
  7. Message-ID: <gerald.722147394@gerald>
  8. Date: 19 Nov 92 04:29:54 GMT
  9. Reply-To: gerald@torolab4.vnet.ibm.com
  10. Organization: November is seafood month
  11. Followup-To: talk.bizarre,alt.sources.d
  12. Lines: 23
  13.  
  14. I need to edit a bunch of files, but "vi *" is just too boring.
  15.  
  16. -----------------------------------cut here----------------------------
  17. #!/bin/ksh
  18. for f in `ls`
  19. do
  20.     if [ -f $f ]
  21.     then
  22.         /bin/clear
  23.         echo "Next player up to bat: $f"
  24.         echo
  25.             echo -n "Status------GP-Coach----Team--------"
  26.         echo "RBIs-Last_played--Name-------------------"
  27.         ls -l $f
  28.         echo
  29.         echo -n "Press Enter to play ball! "
  30.         read junk
  31.         vi $f
  32.     fi
  33. done
  34. -----------------------------------cut here----------------------------
  35.  
  36. Gerald -please distribute freely
  37.