Let's say I have a bash script located in
/home/user/examples that works as follows (it simply takes the user inputted number and adds it to itself ) :
[user]$ add Enter a number: 10 results: entered value - 10 new value - 20
And I want to create another bash script located in
/home/user/other that takes an argument that is given and uses it as the number for the add script from above, but only prints the new value. For example:
[user]$ organize 10 New Value 20
How do I go about this?