I have 2 files with many rows:
First is called Edit_new and has records like:
CN=XXX,CN=M123456,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-du
CN=XXX,CN=M654321,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-vu
Second is:user_list and has records like:
M123456 John Brown
M804420 Alice Cooper
M654321 Joe Bell
What I need is to compare the 2 files and if a record exists in the second file and not in the first file, I want to remove the record from the second file.
Thanks for the help!
Thanks,
First is called Edit_new and has records like:
CN=XXX,CN=M123456,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-du
CN=XXX,CN=M654321,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-vu
Second is:user_list and has records like:
M123456 John Brown
M804420 Alice Cooper
M654321 Joe Bell
What I need is to compare the 2 files and if a record exists in the second file and not in the first file, I want to remove the record from the second file.
Thanks for the help!
Thanks,