Skip to content

Commit 1cb2c0d

Browse files
committed
fixed script 7
1 parent d3381b8 commit 1cb2c0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ set -euo pipefail
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.
88
# The word "Event" should not appear in your script's output.
9-
cut -d' ' -f2 events-with-timestamps.txt | sort | uniq -c
9+
echo "Entry: $(grep -c 'Entry' events-with-timestamps.txt)"
10+
echo "Exit: $(grep -c 'Exit' events-with-timestamps.txt)"

0 commit comments

Comments
 (0)