I am trying to sort a file as following which has multiple columns, separated with comma, and one of the column has date with the following format mm/dd/yyyy.
My intention is to sort first based on the first column and then the third column which has the date. I tried the following command:
sort -t"," -k1,1 -k3,9n.3,10n -k3,1n.3,2n -k3,4n.3,5n filename
but I faced this error any help with explanation is appreciated.
sort: stray character in field spec: invalid field specification â3,9n.3,10nâ