You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
257 B
18 lines
257 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: Alice Kaerast <alice@kaerast.info>
|
||
|
|
||
|
t_Log "$0 test uniq command"
|
||
|
|
||
|
cat << EOF > /var/tmp/uniq-test
|
||
|
1
|
||
|
2
|
||
|
2
|
||
|
3
|
||
|
3
|
||
|
4
|
||
|
5
|
||
|
EOF
|
||
|
|
||
|
uniq -d /var/tmp/uniq-test | wc -l | grep -q 2 && uniq -u /var/tmp/uniq-test | wc -l | grep -q 3
|
||
|
t_CheckExitStatus $?
|