I'm afraid it's not entirely clear what you want, programs which don't work for you are not nearly as illuminating as a good unabridged sample of the input data you have and the output data you want would be.
string file contains some more strings.. which I mentioned in #1
whenever awk finds multiple patterns in $0, I want to store that $0 in array, and finally I want to count and write number of unique records available for that particular search
The same process I have to do 12 times {Jan .....Dec}
I am sorry to say, due to the restriction from department I am unable to attach sample data
Hi there,
you would do well if you could explain the requirement in plain English. Those $0's, $1's, etc. only confuse a reader and make your intent difficult to understand.
You could post a sample by redacting the sensitive portions.