If I have a file with name "read7" with a list of numbers in it, for example:
2
3
4
How can I write a bash script with a while loop to read all the elements in the file and square the numbers and send it as a standard output?
So, after running the script we should get an output of
4
9
16