I have two files with the same configuration
and I want to multiply corresponding values and write the result in a file.
Let say 2 header lines and then lines of values (with not constant number of columns):
Thanks a lot, I am very impress, really!
It works very well for my example but indeed I have forgot to say that
-each line start with 1 or more whitespace
-first value can be negative so first char can be "-"
The code gives you an idea on how to perform the arithmetic. Now why don't you modify the regexp as per you input file? Give it a try and let us know if you are stuck.