Theocacao
Leopard
Design Element
Comment on "TextMate Math Bundle Basics"
by Scott — Dec 20
Hmm, I've never understood why folks get so excited when they discover that if you hold it upside and backwards at just the right angle... you can actually use a hammer to turn some screws!

I can think of a lot of apps better suited for doing simple math than a text editor. Why not save the output as text and import it into Excel? It'll give you the commas for free and can even graph it.

Plus as others have already pointed out, there are plenty of shell commands to do this. In fact, if you're going to use that much Ruby code to format it, why not just do the whole thing in a one liner? (I'm faster at perl than ruby)

perl -e 'map $t += -s, @ARGV; $t =~ s/(\d)(?=(\d\d\d)+(?!\d))/$1,/; print"$t\n"' *


However, since I'm being a bit of a damp rag, let me add that I defintitely do appreciate your posts your posts here and on CDC. Thanks!
Back to "TextMate Math Bundle Basics"
Design Element

Copyright © Scott Stevenson 2004-2015