I have created a file that contains arithmetic expressions, one per line. How can I evaluate the expressions and display the results, from the command line?
The file looks like this:
1 + 2 6 * 4 97 % 12 43215 / 43 * 100
The goal is to output each result, in order, also one per line. I recall there is a way to do this that only requires one command, and that command used might start with
w, but I can't remember how.