...
/Finding the top most crime in the whole country (sort, tail, awk)
Finding the top most crime in the whole country (sort, tail, awk)
We'll cover the following...
To find the top most crime that happened the highest number of times in Australia, we want to sort
our crimedata-au.csv
file by the Total
column (column 11
).
As mentioned earlier, Bash has a command just for doing that, and as you may have guessed, it’s called sort
. However, running sort on the .csv
will output all lines of the file on the screen! which is not essentially very ...
Access this course and 1400+ top-rated courses and projects.