forked from sig_core/toolkit
17 lines
276 B
Bash
Executable file
17 lines
276 B
Bash
Executable file
#!/bin/bash
|
|
r_log "coreutils" "Ensure uniq works as expected"
|
|
|
|
cat > /var/tmp/uniq <<EOF
|
|
Rocky
|
|
Rocky
|
|
Obsidian
|
|
obsidian
|
|
Green
|
|
Green
|
|
Blue
|
|
onyn
|
|
EOF
|
|
|
|
uniq -d /var/tmp/uniq | wc -l | grep -q 2 && uniq -u /var/tmp/uniq | wc -l | grep -q 4
|
|
r_checkExitStatus $?
|
|
/bin/rm /var/tmp/uniq
|