Barcelona | OTC-2025-2 | Sahim Saami | Sprint 1 |Feature/shell tools - #1
Open
sahimsaami wants to merge 6 commits into
Open
Barcelona | OTC-2025-2 | Sahim Saami | Sprint 1 |Feature/shell tools#1sahimsaami wants to merge 6 commits into
sahimsaami wants to merge 6 commits into
Conversation
|
|
||
| # TODO: Write a command to output every line in dialogue.txt said by the Doctor. | ||
| # The output should contain 6 lines. | ||
| grep "the Doctor" dialogue.txt No newline at end of file |
There was a problem hiding this comment.
should ensure you match “Doctor” as a format , not "the Doctor".
| # 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 -iv "Hello" dialogue.txt // The output should be the number 10. | ||
| grep -ivc "Hello" dialogue.txt No newline at end of file |
There was a problem hiding this comment.
You included two commands in the same script, but the exercise expects only one command.
The required output is the 10 lines, not the number.
yassineyahya-occ
left a comment
There was a problem hiding this comment.
Good work overall. Be careful with -c vs printing lines and ensure each script has only one correct command matching the requirement. :)
Owner
Author
|
Hello dear Yassin I fixed the errors . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self checklist