Short answer: it removes all lines starting with # and saves the result in countryInfo-n.txt .
Long explanation:
cat countryInfo.txt reads the cat countryInfo.txt file and passes its contents to standard output.
| connects the output of the left command with the input of the right command (so that the right command can read what the left command prints).
grep -v "^#" returns all lines that do not match ( -v ) match the regular expression ^# (which means: the line starts with # ).
Finally, >countryInfo-n.txt stores the grep output in the specified file.
source share