Linux command line sort on dates
linux command line sort on dates
For one of my projects I needed to sort a csv file on a date field with dd/mm/yyyy format.
sort -n -t"/" -k3,3 -k2,2 -k1,1 planning.csv
linux command line sort on dates
For one of my projects I needed to sort a csv file on a date field with dd/mm/yyyy format.
sort -n -t"/" -k3,3 -k2,2 -k1,1 planning.csv