This question already has an answer here:
I have a txt files with all the file names I need to analyze. I have this file (inputFile.txt) :
/path/file1a path/file1b /path/file2a path/file2b
i have a code which needs two two input files in order to run.
./Analyzethis /path/file1a /path/file1b
i am trying to create a bash loop to go through my txt files, read through each row and run my code.
#!/bin/bash IFS=$'\n'; for FILE1 in `cat inputFile.txt`; do ./Analyzethis $FILE1; done
but, it doesnt work. How can i loop through each row and use the columns with the bash loop?