-
-
Notifications
You must be signed in to change notification settings - Fork 90
London | 26-March-SDC | Ammad Ur Rehman | Sprint 2 | Shell Pipelines Exercises #479
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
baf58a0
f479137
ae4b404
61d352f
40ff335
1d4dc95
287b4b0
d652ac1
cee742e
ccb55b7
fb0e000
a619cc6
89f252d
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,5 @@ set -euo pipefail | |
| # The input for this script is the events.txt file. | ||
| # 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. | ||
|
|
||
| grep -oE 'Entry|Exit' events.txt | sort | 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. Note: An alternative to using |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,5 @@ set -euo pipefail | |
| # The author got feedback that they're using too many exclamation marks (!). | ||
| # | ||
| # TODO: Write a command to output the contents of text.txt with every exclamation mark (!) replaced with a full-stop (.). | ||
|
|
||
| cat text.txt | tr ! . | ||
|
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. A safer practice is to enclose the character set (even if it contains only one letter) by a pair of quotes. This is because some symbols have special meaning in the command line arguments. |
||
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.
The values on the 2nd column are not scores.