opening a text document to show a .txt file throughabrowserlink

Brian Quinlan brian at sweetapp.com
Tue Dec 31 19:47:11 EST 2002


> Okay, foot eaten ;)  I was thinking of "expr" which, IIRC, was the
> typical way of doing it some time ago.  I should have specified sh
> instead of bash, which I don't believe (but don't have around to test)
> has arithmetic operators.

That doesn't matter. If it has sufficiently robust string operations
then you can write arithmetic operations. I took a quick glace at the sh
manual and it looks like you could probably write multiply in less than
200 LOC.

Actually doing so is left as an exercise :-)

Cheers,
Brian






More information about the Python-list mailing list