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