Hacker News new | ask | show | jobs
by fyhn 1894 days ago
I've used

  #!/bin/sh
  python3 -c "from math import *; print($1)"
as my calculator for some time now, and it's quite useful. I need to invoke it with quotes though:

  calc '100/34.2'