Programming

Linux command line sort on dates

linux command line sort on dates

Peter Florijn

1 min read

← Back to journalTopics & more ↓

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