-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LONDON SDC | Pooriya Ketabi | Module-Tools | Sprint-2 | Shell pipelines exercises #57
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I left a couple of comments :)
# It should be clear from your script's output that there have been 5 Entry events and 4 Exit events. | ||
sort events.txt | uniq -c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this quite answers the question - the prompt is that it should be clear that there are 5 Entry events and 4 Exit events, but the output of this is:
2 Entry German
1 Entry Mariana
2 Entry Sally
1 Exit German
1 Exit Mariana
2 Exit Sally
I can add those numbers up myself to get to 5 and 4, but ideally the script you produce would do that for me?
@@ -6,3 +6,7 @@ set -euo pipefail | |||
# TODO: Write a command to show how many times anyone has entered and exited. | |||
# It should be clear from your script's output that there have been 5 Entry events and 4 Exit events. | |||
# The word "Event" should not appear in your script's output. | |||
echo "Entry:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works, but isn't super general - imagine in the future a new event type got added, perhaps "Refused" - can you rewrite this so that it will work for any events that happen, not just Entry and Exit?
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.