home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: talk.bizarre
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!gerald!gerald
- From: gerald@torolab4.vnet.ibm.com (Gerald Oskoboiny)
- Subject: short shameful shell shcript
- Originator: gerald@gerald
- Sender: @watson.ibm.com
- Message-ID: <gerald.722147394@gerald>
- Date: 19 Nov 92 04:29:54 GMT
- Reply-To: gerald@torolab4.vnet.ibm.com
- Organization: November is seafood month
- Followup-To: talk.bizarre,alt.sources.d
- Lines: 23
-
- I need to edit a bunch of files, but "vi *" is just too boring.
-
- -----------------------------------cut here----------------------------
- #!/bin/ksh
- for f in `ls`
- do
- if [ -f $f ]
- then
- /bin/clear
- echo "Next player up to bat: $f"
- echo
- echo -n "Status------GP-Coach----Team--------"
- echo "RBIs-Last_played--Name-------------------"
- ls -l $f
- echo
- echo -n "Press Enter to play ball! "
- read junk
- vi $f
- fi
- done
- -----------------------------------cut here----------------------------
-
- Gerald -please distribute freely
-