Kindly please assit me to compare two files in perl or any other script:
I have two files:
File1.abc
start prog
name cadillac
ggg abc
ttt fff
start prog
name Toyota
ggg abc
ttt fff
start prog
name Ford
ggg abc
ttt fff
File2.bcd
start apps
name mazda
ggg abc
ttt fff
start prog
name cadillac
ggg abc
ttt fff
start prog
name Toyota
ggg abc
ttt fff
start prog
name Isuzu
ggg abc
ttt fff
I have tried sdiff and diff but the output brings all kind of junks. I am specifically need to
compare just the "name" field.
The script only look for match written next to name field and will create an output telling me unmatch in name field.
So output will say:
name Ford found in file1.abc not found in File2.bcd
name mazda found in file2.bcd not found in File1.abc
name Isuzu found in file2.bcd not found in File1.abc
Thanks and appreciate your help.