I have a line in a file, which I have open in TextMate. I would like to select the line, or rather the content of the line; 54 + 34.43 and have it be replaced with the total sum.
I've used the "Filter Through Command" dialog which gives me access to CLI tools. I figure this would also be useful here, but I cannot simply pass off the equation to bc.
Any pointers? Perhaps via python? I'd like to be able to use Filter Through Command and avoid taking on some sort of Bundle to accomplish this.