Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniq: missing support for deprecated -f syntax #2617

Closed
jfinkels opened this issue Aug 29, 2021 · 6 comments
Closed

uniq: missing support for deprecated -f syntax #2617

jfinkels opened this issue Aug 29, 2021 · 6 comments
Labels

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Aug 29, 2021

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
@angus-lherrou
Copy link

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

@angus-lherrou
Copy link

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.

@Leviticoh
Copy link
Contributor

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

@sylvestre
Copy link
Contributor

sure, please do :)

@angus-lherrou
Copy link

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

@sylvestre
Copy link
Contributor

it works now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

5 participants