08-19-2013 06:46 AM
I need something like that:
Read a file having 2 columns and provide a specific compute on each column.
If I schematize the idea it could be like this.
For each line of the text file
-> call a function with value in column one
-> doing something else with the column two
Thanks in advance,
Solved! Go to Solution.
08-19-2013 10:25 AM - edited 08-21-2013 11:29 AM
Besides Steven's "while read", you can use awk's fields, $1 & $2. Of course you could need to write your function in awk, possibly using system to invoke a script.