Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!panda!talcott!harvard!seismo!trwatf!rlgvax!prcrs!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.unix-wizards Subject: Re: Relative speed of Bourne vs. C Shells - C Shell is faster. Message-ID: <162@hadron.UUCP> Date: Thu, 11-Apr-85 14:14:27 EST Article-I.D.: hadron.162 Posted: Thu Apr 11 14:14:27 1985 Date-Received: Thu, 18-Apr-85 04:26:23 EST References: <216@sdcc12.UUCP> <12138@watmath.UUCP> <84@tekcrl.UUCP> <179@tektools.UUCP> Organization: Hadron, Inc., Fairfax, VA Lines: 16 > [...getting onto a tangent...] > ... The following setup shaves the script above > (about 0.4u and 0.4s) down to 0.3u and 0.2s: > #! /bin/awk -f > BEGIN { > x = 1; > while (x < 100) > if (x++ > 10) > print "Hi!" x > exit > } Near as I can tell, the first line only works if you are running the C shell under 4BSD, which interprets the #! business. Joe Yao hadron!jsdy@seismo.{ARPA,UUCP}