I have an input file called bsc_cells.txt that I need to count how many times
the items in column 2 appear.
The example input is below:
RXOTX-99-0 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-1 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-2 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-3 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-102-0 VA0465A ALL GSM1900 ALPHAA 45
RXOTX-102-1 VA0465A ALL GSM1900 ALPHAA 45
RXOTX-102-4 VA0465B ALL GSM1900 ALPHAB 45
RXOTX-102-5 VA0465B ALL GSM1900 ALPHAB 45
RXOTX-102-8 VA0465C ALL GSM1900 ALPHAC 45
RXOTX-102-9 VA0465C ALL GSM1900 ALPHAC 45
RXOTX-133-8 VA0475C ALL GSM1900 ALPHAC 45
RXOTX-133-9 VA0475C ALL GSM1900 ALPHAC 45
RXOTX-133-7 VA0475C ALL GSM1900 ALPHAC 45
The example output is below:
VA0449C 4
VA0465A 2
VA0465B 2
VA0465C 2
VA0475C 3
the items in column 2 appear.
The example input is below:
RXOTX-99-0 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-1 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-2 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-99-3 VA0449C ALL GSM1900 ALPHAC 45
RXOTX-102-0 VA0465A ALL GSM1900 ALPHAA 45
RXOTX-102-1 VA0465A ALL GSM1900 ALPHAA 45
RXOTX-102-4 VA0465B ALL GSM1900 ALPHAB 45
RXOTX-102-5 VA0465B ALL GSM1900 ALPHAB 45
RXOTX-102-8 VA0465C ALL GSM1900 ALPHAC 45
RXOTX-102-9 VA0465C ALL GSM1900 ALPHAC 45
RXOTX-133-8 VA0475C ALL GSM1900 ALPHAC 45
RXOTX-133-9 VA0475C ALL GSM1900 ALPHAC 45
RXOTX-133-7 VA0475C ALL GSM1900 ALPHAC 45
The example output is below:
VA0449C 4
VA0465A 2
VA0465B 2
VA0465C 2
VA0475C 3