Mark Bergman via plug on 10 Sep 2020 10:08:50 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Awk *language*: was Win Subsystem for Linux2 broken


AWK is Turing-complete, definitely a 'language'.

I often find myself reaching for awk for doing stuff with CSV files, like:

	awk 'FS=","; BEGIN{high=0}; {sum=sum+$3 ; if ( high < $4 ) { high=$4 ; highline=NR}} ; END{print "The sum is " sum " and the high in column 4 was " high " on line " highline }'

stuff like:
-- 
Mark Bergman    Biker, Rock Climber, Unix mechanic, IATSE #1 Stagehand

http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=bergman%40merctech.com

I want a newsgroup with a infinite S/N ratio! Now taking CFV on:
rec.motorcycles.stagehands.pet-bird-owners.pinballers.unix-supporters
15+ So Far--Want to join? Check out: http://www.panix.com/~bergman 
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug