-
-
Notifications
You must be signed in to change notification settings - Fork 27
London | 25-SDC-July | Andrei Filippov | Sprint 1 | Individual shell tools exercises #85
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?
Conversation
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 on this sprint - I've left some comments for you to respond to
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.
It should be possible to solve this task with a single cat
command - no pipes needed. If you have time for this stretch, you could have another look at this
@@ -4,3 +4,4 @@ set -euo pipefail | |||
|
|||
# TODO: Write a command to output the name of every `.txt` file in this directory which contains a line of dialogue said by the Doctor. | |||
# The output should contain two filenames. | |||
grep -lr --include="*.txt" '^Doctor:' |
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.
This works, but is there a particular reason you used --include
here rather than passing this as the final argument? Do you know the difference?
Learners, PR Template
Self checklist
Changelist
done exercises
Questions
no questions