Knowledgebase
Linux - Only keep certain country data
< FileToExtract.csv awk 'BEGIN {FS=","} tolower($19)~/usa|united states/' > USAList.txt
This will only keep countries listed as USA/United States. It is not case sensative.
$19 represents the column number.
You can keep multiple countries by modifying the command, for example
/usa|united states|spain|germany/