2013-09-24 Used functions in bc(1). I do use bc(1) regularily for all sorts of calculations on the command line. I like it a lot (although GNU bc requires me to allways invoke it with `-ql'). Usually, I'm doing simple mathematics only. This time however, I've written a more complex formula to calculate the exchange value of players in the PBM game United. The small script is more a quick and dir- ty helper that solved an ad hoc problem than a real tool, but well ... I've used bc(1) for it. That's reason enough to mention it. #!/bin/sh if [ $# -ne 1 ] ; then echo "Usage: ${0##*/} n" >&2 exit 1 fi while read w1 w2 ; do bc -ql <<-! scale = 0 define hw (n, w1, w2) { return ((12-n)*w1 + (n-1)*w2) / 11 } print hw($1, $w1, $w2), "\n" ! done (The command line paramerter `n' is the number of the current round; the two values on stdin (w1, w2) are the player values for the current and next season, taken from a static table.) Came across GNUnet. [0] [1] This really looks interesting! De- centralized, mesh networks are IMO a very natural form of net- works. Such network concepts are what we should approach in the future. Unfortunately, this topic is too closely connected with file sharing -- as if this is all people would like to have dark- nets for; ... as if other networks would not actually exist to share files (as the general container for information), as well. I'd love to know more about that thing: GNUnet. Should read some stuff about it ... [0] http://gnunet.org/ [1] http://en.wikipedia.org/wiki/GNUnet http://marmaro.de/lue/ markus schnalke