so for starters i have the following, main process im running
for fname in (filename); do
./$comma "$fname" (var1) (var2)
mv "$fname" "${fname}.fin"
done
then i have a listfile of names looking like:
filename|var1|var2
file1|9|1
file2|8|3
etc...
would like to set it up where - when the master script goes to run the ./$comma script it reads from the listfile and populate the fname, var1, and var2 (per piped order) - right now i have a lot of repeated chunks of script like the above and would like to consolidate or clean it up for sure. Any help is appreciated - doesnt necessarily have to be a for;do loop - just as long as the script is ran on the right file with right args and gets renamed.