-
-
Notifications
You must be signed in to change notification settings - Fork 13
London SDC | Anna Fedyna | Module Tools| Individual shell | Week 1 #40
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
d628be1
d2c078a
7cfe23b
7cc05de
75f22a6
025ce94
3de79f2
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 |
---|---|---|
|
@@ -4,3 +4,6 @@ set -euo pipefail | |
|
||
# TODO: Write a command to output every line in dialogue.txt that does not contain the word "Hello" (regardless of case). | ||
# The output should contain 10 lines. | ||
|
||
grep -vic 'Hello' dialogue.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. issue: We're using grep twice here, and the output on one is 10 lines and the output on the other is 1 line. We can definitely do this correctly in one, can you work out which flag (or flags) we might need to do this? 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. Probably, leaving -vi flags going to be enough. If there is any other way would be nice to now) |
||
grep -vi 'Hello' dialogue.txt |
Uh oh!
There was an error while loading. Please reload this page.