I have a file that looks like this
3 123456789 3 00000 2 123456789 2 abcde 1 4 abcdefgh
The lines in the first column correlate with the line number of another file, which looks something like this:
$a&a(md ( l 0 p a$1 =2 3 x5 x4 &a”s?m!a
I would like some way to fuse the files, replacing the numbers in the first column of the first file with the content of the corresponding line of the second file. So the final file would look something like this:
=2 3 x5 x4 123456789 =2 3 x5 x4 00000 ( l 0 p a$1 123456789 ( l 0 p a$1 abcde $a&a(md &a”s?m!a abcdefgh
The formatting doesn't matter much, as long as I can tell which column is which.
I'm using Linux.
Any help is greatly appreciated.