coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

uniq: missing support for deprecated -f syntax

Open jfinkels opened this issue 3 years ago • 5 comments

Similar to #2507. The -f <num> option to uniq has a deprecated syntax, -<num>. See https://www.gnu.org/software/coreutils/manual/html_node/uniq-invocation.html For example,

$ printf "a a\nb a\n" | uniq -1
a a

jfinkels avatar Aug 29 '21 13:08 jfinkels

I don't know if this is possible to specify with clap.

angus-lherrou avatar Oct 14 '21 20:10 angus-lherrou

Actually, it should be possible with a multiple flag for each digit, which is the way GNU uniq does it. I'll try my hand at this.

angus-lherrou avatar Oct 14 '21 21:10 angus-lherrou

how did it go? i'd like to try if no one is working on it

Leviticoh avatar Dec 10 '22 19:12 Leviticoh

sure, please do :)

sylvestre avatar Dec 10 '22 19:12 sylvestre

how did it go? i'd like to try if no one is working on it

yes, go for it—I fully do not remember what I ended up doing haha

angus-lherrou avatar Dec 10 '22 20:12 angus-lherrou

it works now :)

sylvestre avatar Sep 24 '23 12:09 sylvestre