I have some dirty work to do, so a Bash script seems to be a good choice. I\'m new to Bash, and the experience makes me kind of frustrated.
The file mapfiles.txt con
Using GNU Parallel you can do it in a single line + you get it done in parallel for free:
cat mapfile.txt | parallel --colsep '\s' prog {2} {3} {4} {1}
Watch the intro videos to learn more: http://www.youtube.com/watch?v=OpaiGYxkSuQ