I have a .CSV file that I need to extract numbers from. Example of file:
#File of numbers 1,2,3,4,5 6,7,8,9,10
I want to use awk (or another utility) to extract the first number and second number and store them in a variable to perform calculations within my bash script. I want to exclude the first line that has # at the beginning.
Once I perform the calculation I want to extract the third number to continue calculations and repeat until I have gotten all numbers. I don't know how to start this and would appreciate some help. I know that I will need to put the awk script inside a loop to get number three, four, etc. but I'm confused with how to write the awk script.