I need to read from multiple file in one loop. I have one file with X coords, one file with Y coords and one file with chars on those coords.
For now I use pas
pas
I'm not sure how to do it without paste, but you can avoid cut assigning all variables in one read:
paste
cut
read
while read -r X Y CHAR; do echo "X = $X; Y = $Y; CHAR = $CHAR"; done < "$file"