Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

sed one-liner

$
0
0
I have a data base of part numbers:
AAA Thing1
BBB Thing2
CCC Thing3

File one is a list of part numbers:
AAA234
BBB678
CCC2345

Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this?

AAA234 Thing1
BBB678 Thing2
CCC2345 Thing3

Thank you.

Viewing all articles
Browse latest Browse all 16232

Trending Articles