I have two files with two different values. I want to run a command in loop which needs input from both file. Let me give the example to make it simple.File1 contents:  google  yahooFile2 contents:  mail  messengerMy requiremt is: I need output like the belowgoogle is good in mail  yahoo is good in messengerHow can I use a for/while loop to achieve the same?I need help on the below script too:$File1 needs to replace first result in File1 and $File2 needs to replace first result in File2  /usr/local/psa/bin/domain --create domain $File1 -mail_service true -service-plan 'Default Domain' -ip 1.2.3.4 -login $File2 -passwd abcghth
Parse two files input in for/while loop
bash;for
The standard procedure (in Bash) is to read from different file descriptors with the -u switch of read:while IFS= read -r -u3 l1 && IFS= read -r -u4 l2; do    printf '%s is good in %s\n' $l1 $l2done 3<file1 4<file2