PDA

View Full Version : How to read figures from a table and calculate the total and print it in the same fil



Reginaisy
October 20th, 2011, 07:14 AM
I am trying to write a bash code to read the figures of a given table and to calculate the total and print it back in the same file. Please I need a help !

nothingspecial
October 20th, 2011, 07:16 AM
Moved to programming.

karlson
October 20th, 2011, 01:25 PM
I am trying to write a bash code to read the figures of a given table and to calculate the total and print it back in the same file. Please I need a help !

Any reason to use bash as opposed to Perl or Python? Can you describe the file that you are reading and data in it?

cgroza
October 20th, 2011, 09:21 PM
Other scripting languages are more useful for this.
This can be done pretty easy in Python, Ruby or even Haskell.