Skip to content

uniq #14

Description

@likhithabz55

For this project, I would like to implement the functionality of uniq command. It compares adjacent lines in a file or standard input and filters out the duplicate lines and writes the result to standard output. It retains the first occurrence of each sequence of identical adjacent lines.

I would also like to implement the functionality of below flags :

-c, --count -> prefix lines by the number of occurrences
-d, --repeated -> prints one instance of each duplicated line.
-D -> prints all duplicated lines.
-i, --ignore-case -> ignores differences in case when comparing
-u, --unique -> Only prints the unique lines
-s, --skip-chars=N -> avoids the first N characters while comparing

I would be working alone on this project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions