I have two files.
First file (users.txt
):
!/bin/bash/
johnny
james
clara
brandon
steve
louis
daniel
Second file (mails.txt
)
[The first line is not empty, the file contains only mail address without spaces]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
How can I add under any username of 1st file his mail from 2nd file?
I think the sed
command is needed.