Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 1 | Shells tools exercise#75
Open
sheetalkharab wants to merge 8 commits intoCodeYourFuture:mainfrom
Open
Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 1 | Shells tools exercise#75sheetalkharab wants to merge 8 commits intoCodeYourFuture:mainfrom
sheetalkharab wants to merge 8 commits intoCodeYourFuture:mainfrom
Conversation
LonMcGregor
reviewed
Aug 11, 2025
LonMcGregor
left a comment
There was a problem hiding this comment.
Great work here - there are two commands I think you could take another look at
|
|
||
| # TODO: Write a command to output the number of lines in dialogue.txt that contain the word Doctor (regardless of case). | ||
| # The output should be exactly the number 9. | ||
| grep -i 'Doctor' dialogue.txt | wc -l No newline at end of file |
There was a problem hiding this comment.
Can you resolve this task using only a single grep command?
Author
There was a problem hiding this comment.
@LonMcGregor Thank you for review. i made change as you suggest.
|
|
||
| # TODO: Write a command to output input.txt removing any line which contains a number. | ||
| # The output should contain 6 lines. | ||
| grep -v '[0-9]' input.txt |
There was a problem hiding this comment.
Can you complete this task using sed?
|
Great work - you are complete with this sprint now |
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.
Learners, PR Template
Self checklist
Changelist
write some commands in script file to answer those question.
Questions
Ask any questions you have for your reviewer.