Probably a few ways to do this. One option is
paste filea fileb > filec
This will stick the files together. Then you could run the file through awk to remove unwanted lines, something like
awk -F" " '$1 != $2' filec > filed
The above awk solution is simplistic and makes no assumptions about the actual structure of data in your file. I'm sure it can be done fully in awk as well though
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.