Email Address Password
Remember Me

Or Create a (Free) Account.
2004JanFebMarAprMayJunJul Aug Sep Oct Nov Dec
2005 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2006 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Oct Oct
2007JanFebMarAprMayJunJulAugSepOctNovDec2007
2008JanFebMarAprMayJunJulAugSepOctNovDec2008
2009JanFebMarAprMayJunJulAugSepOctNovDec2009
2010JanFebMarAprMayJunJulAugSepOctNovDec2010
2011JanFebMarAprMayJunJulAugSepOctNovDec2011
2012JanFebMarAprMayJunJulAugSepOctNovDec2012
2013JanFebMarAprMayJunJulAugSepOctNovDec2013

Thu 3rd Mar 00:20 2011: World Cup

Who would have thought that I would have known anything at all about the World Cup qualification progress? It happened to suit a good example for Shell Scripting Recipes so I have spent an evening learning about how the process works. Basically, you play every country in your group, and the results of those games determines who goes on to the later stages.

shell scripting recipesNot too shabby to put each country into a group, arrange games such that each country plays against every other country in their group, and get that coded in 53 lines of code. It even tries to ensure that the players don't get too tired by playing too many consecutive games.


Comments for 'World Cup'

Fri 28 Sep 2012 @ 00:48 GMT : Steve Parker
http://media.wiley.com/product_ancillary/86/11180244/DOWNLOAD/Chapter%2013%20code.zip<br /> <br /> Somehow the worldcup.sh script has been encoded in DOS format, with ^M on the end. Use dos2unix, or unixtext.com, to convert the script to be usable.

You could post a comment if you were logged in.

You are logged in as 0

create an account

Steve's urandom blog
Share on Twitter Share on Facebook Share on LinkedIn Share on Identi.ca Share on StumbleUpon
My Shell Scripting Book:
    Shell Scripting, Expert Recipes for Linux, Bash and more
is available online and from all good booksellers:


DefectiveByDesign.org