good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: A little golf anyone?by jsprat (Curate) |
on Oct 30, 2002 at 22:23 UTC ( [id://209264]=note: print w/replies, xml ) | Need Help?? |
How about 114 (including the 'du -k|':
Output using the sample data looks like this:
I didn't come up with a way to cleanly format G to 1 decimal place, leaving K and M at a whole number (ie 1.2G, 240M). 94 if less precision and un-aligned formatting meets your standards :-P
Update: fixed miscounts
In Section
Meditations
|
|