-
-
Notifications
You must be signed in to change notification settings - Fork 11
LONDON | DONARA BLANC | MODULE TOOLS | SPRINT 2| SHELL PIPELINES #43
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,11 @@ set -euo pipefail | |
# The input for this script is the scores-table.txt file. | ||
# TODO: Write a command to output scores-table.txt, with lines sorted by the person's first score, descending. | ||
# The first line of your output should be "Basia London 22 9 6" (with no quotes). | ||
sort -nrk3 scores-table.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works, but personally I tend to separate out flags which take values to make it more clear which values are associated with which flag, i.e. I would probably write |
||
|
||
Basia London 22 9 6 | ||
Piotr Glasgow 15 2 25 11 8 | ||
Chandra Birmingham 12 6 | ||
Mehmet Birmingham 3 12 17 | ||
Leila London 1 | ||
Ahmed London 1 10 4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ 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. | ||
tail -9 events-with-timestamps.txt | sort -k3 | awk '{print $3}' | uniq -c | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works, but I probably would've started it with |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,14 @@ set -euo pipefail | |
# so every Y should be a Z, and every Z should be a Y! | ||
# | ||
# TODO: Write a command to output the contents of text.txt with every Y and Z swapped (both upper and lower case). | ||
Dear Zara, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the command is missing here? Can you add it? |
||
|
||
My apologies for sending this response so late. As you know, there's been a lot going on! | ||
|
||
Unfortunately I don't think I'll be able to make it to Zimbabwe, but but sounds amazing! | ||
|
||
Hope you're doing well, and enjoy the trip! | ||
|
||
Thanks, | ||
|
||
Karolina |
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.
What does the
-E
do here? Why do you need it here when you didn't need it for script-02 which otherwise looks quite similar?