I have a text file like this
chr1:16840617-16840780 RNU1-1 (2 columns are tab separated)
chr3:142139047-142139211 RNU1-100P
............
............
I want to loop over the lines of text file and save column 1 and column 2 in sep variables, something like this :
OLDIFS=$IFS; IFS=$'\n'; for line in $(cat test.txt);do LOC="save location";NAME="save name";done
After saving name and location I have to do couple of steps more to get my desired output but as of now I want to store them.