Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
I have used the following assumptions to develop the script. It would be really helpful if there was standard assumptions so that we could develop a robust script accordingly. Anyway, I have used the following assumptions. Hoping I did not miss anything important
# ASSUMPTIONS:
# 1. The .tsv (tab-separated value) file is assumed to have the columns in the same order every time.
# 2. The first line is assumed to be a line with a named column. So, I am counting the data from the second line onwards only.
# 3. The .tsv file always ends with a newline character at the end of the file. This is because `wc` gives different results depending on the presence of newline characters at the end of the file.
# 4. The state code is always two-lettered and capitalized. The primary research shows the US codes are always two-lettered and capitalized. So, If Tx, tx, or tX is a second argument, I am displaying State Code not found message.