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
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