[Updated] [How to] Extract specific cells from the OpenCelliD csv database

I have found csvgrep to be the quickest way of extracting data from the OpenCellID dataset. For example, if you want to extract data for South Sudan which has a mobile country code (MCC) of 659, it would look like this:

csvgrep -c2 -m659 cell_towers.csv

where c indicates the column you want to search and m the value you want to grep for. Works with other columns too of course.

More info on csvgrep at

and

https://csvkit.readthedocs.io/en/1.0.3/scripts/csvgrep.html