In this game, you roll a number of six-sided dice to get a
total. The total is either the highest single die result, or the sum of any multiples rolled, whichever is higher.
For example: If I roll three dice and get a 3, 4, and 6, my total is 6. But if I roll a 4, 4, and 6, my total is 8, the sum of the two 4s.
What I want to find out is the mean, median, mode, and standard deviation of the possible totals given N dice. How might I create a simple script to compute this?
[more inside]
posted by j0hnpaul
on Nov 30, 2012 -
24 answers
Weird Unix terminal issue where yer trying to up arrow through bash history and it looks messed up, right?
[more inside]
posted by xmutex
on Sep 21, 2011 -
11 answers
Need help scheduling a unix task under Mac OS. Probably an easy question for those who understand such things.
[more inside]
posted by Alaska Jack
on Mar 23, 2011 -
16 answers
I'm using a shell script to handle some excel docs by converting to csv and reformatting it a little bit. I'm having some difficulty going on with the next part of the script. Some help would be great. :)
[more inside]
posted by fightoplankton
on Jun 10, 2009 -
11 answers
I have a podcast that downloads as multiple segments over multiple days. Its format arrives as YYYYMMDD_showcode_segment.mp3; so, for example, one download might result in files as 20090323_goofa_01.mp3 through 20090323_goofa_21.mp3, and also
within the same download 20090324_goofa_01.mp3 through 20090324_goofa_21.mp3. What I'm looking for is a Unix script (shell, perl, what have you) that would look at a directory and look at what dates are represented there, and let me join all of the segments together by day. I can use mpgtx -j to do the actual joining; I'm looking for the code that would let the script determine what dates are in the directory and then get each day's segments united into a single MP3 for that day's show.
posted by WCityMike
on Mar 25, 2009 -
5 answers
datascrubbing: I'm using rm -R */*.gif (for example) to get rid of unnecessary files in a directory. There is stuff that's nested about five directories deep that I can't get to using the above command. I'm using the Bash terminal in OS X. specifically, there is a redundant file called "popup" nested in there that I want to get rid of, among others.
Second related problem: is there a way to recursively delete (full) directories, say ones that end in .blob using wildcards? And would I use rmdir or rm -R to do this?
I'm working on a copy of the original, so its ok to experiment a little
posted by mecran01
on Jul 16, 2004 -
18 answers