File1
ab
abcd
ababa
File2
sieraa .alu.wood.unitedcarrot ababa.alu.wood.unitedcarrot_159273 A-AMA_CDU oneday 5 21/06/2020 19:37:41 35:34:35 22/09/2020 19:37:41 146294407 BOND
sieraa alu.wood.unitedcarrot ababa.alu.wood.unitedcarrot_15923 A-AMA_CDU-001 oneday 3 17/06/2020 19:18:34 01:01:01 18/07/2020 19:18:34 13412337 BOND
sieraa .alu.wood.unitedcarrot aca.alu.wood.unitedcarrot_15930 tata-papa twoday 3 25/06/2020 00:30:26 00:59:31 26/07/2020 00:30:26 31124932 helloworld
sieraa .alu.wood.unitedcarrot abcd.alu.wood.unitedcarrot_159292 core-core twoday 3 24/06/2020 00:30:06 02:44:27 25/07/2020 00:30:06 84174706 helloworld
Output required print matched string and unmatched string
Ques: I have two files one File1 - contains single alphabets and file2 contains multiple strings in single to multiple line
I want to match alphabets in contained in File1 in File2 and if they match say match and Print whole line of File2 and
if they dont match print unmatched alphabet of file1 as unmatch
perl Programmers pls help