I have two files
File1
COA213345
COA213345
COA213445
DOB213345
EOA213345
File2
COA213345|a|b|c|
COA213345|a|b|c|
LOA213345|a|b|c|
kOB213345|a|b|c|
LOA213345|a|b|c|
Now i have to create a file File3 which has Same values from Both Files So the output has to a new file with content
File3
COA213345|a|b|c|
COA213345|a|b|c|
How do i get this ?