Skip to content

Commit 7ebef5a

Browse files
committed
made correction to the command
1 parent 90e1bb7 commit 7ebef5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ set -euo pipefail
55
# The input for this script is the events.txt file.
66
# TODO: Write a command to show how many times anyone has entered and exited.
77
# It should be clear from your script's output that there have been 5 Entry events and 4 Exit events.
8-
sort events.txt | uniq -c
8+
awk '{print $1}' events.txt | sort | uniq -c
9+

0 commit comments

Comments
 (0)