If I have a script that does the following
[alice]$ math
Enter a number: 5
Number squared: 25
Number divided: 1
Number to power of 3: 125
And I want to write another script that organizes the output from the math script into a table, but can also take multiple arguments and does not show the "Number divided". For example
[alice]$ newprogram 5 10
*
*Number squared power of 3
5 25 125
10 100 1000
Also, the math script is located in /home/alice
and the newprogram is going to be located in /home/user
. How do I approach this?