-
-
Notifications
You must be signed in to change notification settings - Fork 27
London-SDC | Ameneh Keshavarz | Module-Tools | Sprint1 #21
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
base: main
Are you sure you want to change the base?
London-SDC | Ameneh Keshavarz | Module-Tools | Sprint1 #21
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.
This is a great demonstration of skill in the command line and engagement with the material, and it was a pleasure to read through. Keep it up!
@@ -4,3 +4,5 @@ set -euo pipefail | |||
|
|||
# TODO: Write a command to output just the names of each player in `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.
nitpick: Consider removing TODO comments once their feature is implemented, you could replace the comment with an explanation about how your solution works (keeping the expected output as well)
@@ -5,3 +5,5 @@ set -euo pipefail | |||
# TODO: Write a command to output just the names of each player along with the number of times they've played the game. | |||
# Your output should contain 6 lines, each with one word and one number on it. | |||
# The first line should be "Ahmed 3". | |||
|
|||
awk '{ print $1, NF-2 }' 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.
praise: Really great to see you hit these strech goals here 💪
@@ -13,3 +13,5 @@ set -euo pipefail | |||
# 3 It looked delicious. | |||
# 4 I was tempted to take a bite of it. | |||
# 5 But this seemed like a bad idea... | |||
|
|||
cat -n ../helper-files/* |
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.
praise: Great use of the wildcard here!
@@ -6,3 +6,5 @@ set -euo pipefail | |||
# If a line starts with a number and a space, make the line instead end with a space and the number. | |||
# So line 6 which currently reads "37 Alisha" should instead read "Alisha 37". | |||
# The output should contain 11 lines. | |||
|
|||
sed 's/^\([0-9]\+\) \(.*\)$/\2 \1/' input.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.
praise: great regular expression here!
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.