Skip to content

Commit ccb55b7

Browse files
committed
Complete sort-uniq-head-tail script-06.sh exercise
1 parent cee742e commit ccb55b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +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+
9+
grep -oE 'Entry|Exit' events.txt | sort | uniq -c

0 commit comments

Comments
 (0)