-
-
Notifications
You must be signed in to change notification settings - Fork 42
Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 1 | Shells tools exercise #75
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?
Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 1 | Shells tools exercise #75
Conversation
LonMcGregor
left a comment
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.
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 |
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.
Can you resolve this task using only a single grep command?
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you complete this task using sed?
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.
@LonMcGregor , I changed it using sed command.
|
Great work - you are complete with this sprint now |
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.