Skip to content

Commit af77931

Browse files
committed
use sort-uniq pipeline to show all events without duplications
1 parent 978cc0a commit af77931

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

shell-pipelines/sort-uniq-head-tail/script-05.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ set -euo pipefail
66
# TODO: Write a command to show a list of all events that have happened, without duplication.
77
# The order they're displayed doesn't matter, but we never want to see the same event listed twice.
88
# Your output should contain 6 lines.
9+
sort events.txt | uniq

0 commit comments

Comments
 (0)