41 |
#-c occurrences |
#-c occurrences |
42 |
#-d dups only |
#-d dups only |
43 |
#-u |
#-u |
44 |
|
#-w max chars |
45 |
|
|
46 |
# Test various command line options |
# Test various command line options |
47 |
|
|
61 |
bb cc dd8 |
bb cc dd8 |
62 |
aa bb cc9 |
aa bb cc9 |
63 |
" |
" |
64 |
|
testing "uniq -w (compare max characters)" "uniq -w 2" \ |
65 |
|
"cc1 |
66 |
|
" "" \ |
67 |
|
"cc1 |
68 |
|
cc2 |
69 |
|
cc3 |
70 |
|
" |
71 |
|
|
72 |
|
testing "uniq -s -w (skip fields and compare max chars)" \ |
73 |
|
"uniq -s 2 -w 2" \ |
74 |
|
"aaccaa |
75 |
|
" "" \ |
76 |
|
"aaccaa |
77 |
|
aaccbb |
78 |
|
bbccaa |
79 |
|
" |
80 |
|
|
81 |
# -d is "Suppress the writing fo lines that are not repeated in the input." |
# -d is "Suppress the writing fo lines that are not repeated in the input." |
82 |
# -u is "Suppress the writing of lines that are repeated in the input." |
# -u is "Suppress the writing of lines that are repeated in the input." |