I have a text file with 2 values in each line. I need to put these two values in two different variables i.e var and var2 and do further processing for each line. The delimiter is space between the two variables.
Comment converted into information in the question, using some of the formatting available in questions.
I have a text file, abc.txt:
apple jobs
microsoft gates
I want 'apple' in $var, 'jobs' in $var2 from the first line; same thing when iterated should give me 'microsoft' and 'gates' in the same $var and $var2. When I am using:
var=`awk -F' ' '{print $1}' abc.txt`
it's giving me 'apple', 'jobs' and 'microsoft' in var and 'gates' in var2.