Nota: this will work simply while each file do contain 1 word by line.
And if you plan to use space in your source files, you could use another delimiter:
while IFS=@ read -r aws_user_name aws_key aws_account_num ;do
printf "User: %-16s Key: %-22s AccNum: %s\n" \
"$aws_user_name" "$aws_key" "$aws_account_num"
# ....
done < <(
paste -d@ "$aws_users_all" "$aws_env_list" "$aws_account_numbers"
)
I am not sure IFS=@ paste -d@ mean?
I understand paste -d "|,", I can aslo figure it out IFS=";" mean.
I also following https://stackoverflow.com/questions/7427262/how-to-read-a-file-into-a-variable-in-shell
https://man7.org/linux/man-pages/man1/bash.1.html