I have a text file containing a list of nine-digit numbers like this:
550411876
550425175
550426504
And a second text file that contains a single line like this:
09Y20171031 13415520171031 134155AP|AO|ABxxxxxxxxx|AC|CH|BIN|
I need to make a text file that contains many occurrences of the line from the second file, but with the xxxxxxxxx
replaced with the number from the first file (the xxxxxxxxx
is literally in the file, it's not just an example). In this case the result would be:
09Y20171031 13415520171031 134155AP|AO|AB550411876|AC|CH|BIN|
09Y20171031 13415520171031 134155AP|AO|AB550425175|AC|CH|BIN|
09Y20171031 13415520171031 134155AP|AO|AB550426504|AC|CH|BIN|
How do I do this in Linux?