I have a list of strings that are being extracted by pattern matching. I would like to count the number of times any particular string is repeated. I have no idea whether I should store the strings to an array or print to a text file. Any ideas?
Sample Data
pad1
sigA_1[1]
input
pad2
sigB
output
pad1
sigA_1[2]
input... so the output would be sigA 2 and sigB 1
Sample Data
pad1
sigA_1[1]
input
pad2
sigB
output
pad1
sigA_1[2]
input... so the output would be sigA 2 and sigB 1