Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 v7 ucbtopaz-1.8; site ucbtopaz.CC.Berkeley.ARPA Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!dcdwest!ittvax!decvax!ucbvax!ucbtopaz!mwm From: mwm@ucbtopaz.CC.Berkeley.ARPA Newsgroups: net.unix Subject: Re: Basic on UNIX - ... Message-ID: <727@ucbtopaz.CC.Berkeley.ARPA> Date: Fri, 15-Feb-85 02:55:51 EST Article-I.D.: ucbtopaz.727 Posted: Fri Feb 15 02:55:51 1985 Date-Received: Mon, 18-Feb-85 04:17:35 EST References: <852@houxf.UUCP> <401@lsuc.UUCP> Reply-To: mwm@ucbtopaz.UUCP (Praiser of Bob) Organization: Missionaria Phonibalonica Lines: 23 Summary: In article <401@lsuc.UUCP> msb@lsuc.UUCP (Mark Brader) writes: >stewart@houxf.UUCP (Bill Stewart HO 4K-435 x0705) writes: >> While I normally disparage BASIC along with the rest of you, there are >> a few places it's useful. I tend to use it for jobs that take too much >> arithmetic for shell, but are too small to bother writing in C >> FOR I = 1 TO 43 >> PRINT "FOO";I >> NEXT I > >My preference would be: > awk for (i=1; i<=43; ++i) print "foo" i }' >Mark Brader Yikes! What's wrong with a nice, simple: % bc for (i = 0; i <= 43; i++) { "foo"; i} Of course, for something complicated, I'll fire up a lisp, but that's anther language.