BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.38k stars 323 forks source link

Adding -u/--uniq flag to sort command #211

Closed Yomguithereal closed 4 years ago

Yomguithereal commented 4 years ago

Hello @BurntSushi,

Here is a simple PR to add a -u/--uniq flag to the xsv sort command that, if enabled, will drop identical consecutive lines in order to keep only one line per sorted value. It does not try to be clever about it by merging anything or else. This is often useful and is quite coherent with unix sort -u.

Have a good day