I have a file that has two columns like such.
cat test.txt 100 2007 FFF 1993 7E7 1994 4BB 1995
I need to input each of the lines into a script, and have the two columns assigned as separate variables so I can run them through a different loop, and then move onto the next line.
I have a long list of files that I need to perform a find and replace function for each of the pairs. I am converting sets to year which I already have mapped out.
My script will look something like this.
SET=$1 YEAR=$2 for i in `ls` ; do sed -i "" 's/"$1"/"$2"/g' $i; done
I cant figure out how to have the test.txt loop the script with the new lines.