-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
CYF London | Rihanna Poursoltani | Module-Tools | Sprint 1 | Individual Shell Tools #23
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.
Well Done! Your approach to solving the tasks is unique and shows your ability to think outside the box. Keep up the good work!
@@ -5,3 +5,4 @@ set -euo pipefail | |||
# TODO: Write a command to output just the names of each player in London along with the score from their last attempt. | |||
# Your output should contain 3 lines, each with one word and one number on it. | |||
# The first line should be "Ahmed 4". | |||
awk '/London/ { if (NF<5) print $1, $NF; else print $1, $5}' scores-table.txt |
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.
well done for handling cases where the number of fields might affect which field to print!
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.
Thank you @mjpeet
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.