JohnKelly - 8:07 pm on Apr 16, 2010 (gmt 0)
I have flat file database delineated with the pipe symbol. I need to sort on the 8th field (province) and then the 7th field (city), so that the output will have the provinces in alphabetical order, and then the cities. Here is the code I'm using:
sort -t\| +7f +6f hotels_CA_only.txt > hotels_CA_only_sorted_by_province_then_city.txt
This seems to sort by province only but not city. What am I doing wrong, please?