coreutils
coreutils copied to clipboard
uniq: missing support for deprecated -f syntax
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
I don't know if this is possible to specify with clap
.
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.
how did it go? i'd like to try if no one is working on it
sure, please do :)
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
it works now :)