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

Expand the capabilities of the uniq command #72

Open
n-t-eastham opened this issue Sep 17, 2024 · 1 comment
Open

Expand the capabilities of the uniq command #72

n-t-eastham opened this issue Sep 17, 2024 · 1 comment

Comments

@n-t-eastham
Copy link

Purpose: to refactor the preexisting uniq command which reports or deletes repeated lines in a file.

current supported flags

  • -c prints the count of the unique lines
  • -w prints the unique words
  • -wc prints the unique words and their counts

Goals:

  • fix any hardcoded parameters
  • utilize the sort command

add as many of these unimplemented flags

  • -f: allow the user to ignore case (case-insensitive comparison for uniqueness).
  • -u: print only unique lines or words without any counts.
  • -s: sort the output alphabetically or numerically
  • -r: severse the sorting order of the output.
  • -t: output the total number of unique lines or words at the end.
@malensek
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants