uniq Flashcards

1
Q

uniq

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

uniq [OPTIONS]

  • c
  • d
  • D
  • i
  • u
A
  • c, –count, Prefix lines by the number of occurences.
  • d, –repeated, Only print duplicate lines, one for each group.
  • D, Print all duplicate lines.
  • i, –ignore-case, Ignore differences in case when comparing.
  • u, –unique, Only print unique lines.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

uniq [OPTIONS]

  • f
  • s
A
  • f, –skip-fields=N, Avoid comparing the first N fields.
  • s, –skip-chars=N, Avoid comparing the first N characters.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly