multiple pattern search and count the no. of occurances
Hi......
I have a file like this having names...file name: names.txt
raj
joe
sush
farhan
raj
ilem
adam
robert
adam
adam
joe
I have the patterns to be checked in a file: pattern.txt
gilli
ricky
saeed
raj
ilem
adam
how
smith
joe
So, i want to search each $i of pattern.txt in names.txt and count the no. of occurances of every $i
Plz help......
|