6
rated 0 times
[
6]
[
0]
/ answers: 1 / hits: 1801
/ 2 Years ago, mon, august 8, 2022, 2:36:32
I want to know that how many times 'ABCD'(file A) comes in DB (file B). Likewise I want to know about every singe line present in file A against DB. I need an automated command which can ease my work because I have a large amount of data in file A and I want to search it against many databases. I just make the characters bold for understanding.
File A
ABCD
EFG
HIJKL
MNO
PQRSTU
File B
XYZABCDFORNTUFPSRWSABCFYWSZCFTHBFORTYBJNFABCDDEFGACVRTEFGPQRMNOOPQEFGZXXXYY
Desired output:
ABCD 2
EFG 3
HIJKL 4567
MNO 0
PQRSTU 7652
More From » command-line