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
You can simplify this a lot:
while read file key log lat do echo "$cmd" "$key" "$log" "$lat" "$file" done < "$input"