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: move help strings to markdown file #4681

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

miles170
Copy link
Contributor

#4368

$ cargo run -- uniq --help
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/coreutils uniq --help`
Report or omit repeated lines.

Usage: target/debug/coreutils uniq [OPTION]... [INPUT [OUTPUT]]...

Arguments:
  [files]...

Options:
  -D, --all-repeated[=<delimit-method>]  print all duplicate lines. Delimiting is done with blank lines. [default: none] [possible values: none, prepend, separate]
      --group[=<group-method>]           show all items, separating groups with an empty line. [default: separate] [possible values: separate, prepend, append, both]
  -w, --check-chars <N>                  compare no more than N characters in lines
  -c, --count                            prefix lines by the number of occurrences
  -i, --ignore-case                      ignore differences in case when comparing
  -d, --repeated                         only print duplicate lines
  -s, --skip-chars <N>                   avoid comparing the first N characters
  -f, --skip-fields <N>                  avoid comparing the first N fields
  -u, --unique                           only print unique lines
  -z, --zero-terminated                  end lines with 0 byte, not newline
  -h, --help                             Print help
  -V, --version                          Print version

Filter adjacent matching lines from INPUT (or standard input),
writing to OUTPUT (or standard output).

Note: 'uniq' does not detect repeated lines unless they are adjacent.
You may want to sort the input first, or use 'sort -u' without 'uniq'.

@miles170 miles170 force-pushed the uniq-move-help-strings-to-md-fil branch from c5bc088 to 716310a Compare March 29, 2023 10:10
@miles170 miles170 force-pushed the uniq-move-help-strings-to-md-fil branch from 716310a to 35effdd Compare March 29, 2023 11:32
src/uu/uniq/uniq.md Outdated Show resolved Hide resolved
@miles170 miles170 force-pushed the uniq-move-help-strings-to-md-fil branch from 35effdd to 59c210d Compare March 30, 2023 01:01
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/tail-2/inotify-dir-recreate. tests/tail-2/inotify-dir-recreate is passing on 'main'. Maybe you have to rebase?

@cakebaker cakebaker merged commit 297a6b4 into uutils:main Mar 30, 2023
@cakebaker
Copy link
Contributor

Thanks!

@miles170 miles170 deleted the uniq-move-help-strings-to-md-fil branch March 30, 2023 05:48
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

Successfully merging this pull request may close these issues.

4 participants