NW | 2026-mar-sdc | TzeMing Ho | Sprint 1 | individual-shell-tools-exercises#361
Open
TzeMingHo wants to merge 8 commits intoCodeYourFuture:mainfrom
Open
NW | 2026-mar-sdc | TzeMing Ho | Sprint 1 | individual-shell-tools-exercises#361TzeMingHo wants to merge 8 commits intoCodeYourFuture:mainfrom
TzeMingHo wants to merge 8 commits intoCodeYourFuture:mainfrom
Conversation
SlideGauge
reviewed
Apr 5, 2026
SlideGauge
left a comment
There was a problem hiding this comment.
There are a lot of files which do not have the trailing newline. Could you adjust settings of your editor please?
| # TODO: Write a command to output, for each `.txt` file in this directory, how many lines of dialogue the Doctor has. | ||
| # The output should show that dialogue.txt contains 6 lines, dialogue-2.txt contains 2, and dialogue-3.txt contains 0. | ||
|
|
||
| grep -c ^Doctor *.txt No newline at end of file |
There was a problem hiding this comment.
What will happen if we met a line starting like this:
Doctorslike:
?
|
|
||
| # TODO: Write a command which lists all of the files in the directory named child-directory. | ||
|
|
||
| ls -R ./child-directory |
There was a problem hiding this comment.
What does -R do? Do we need it in this context?
|
Good job, there a couple of notes from my side, could you fix them? |
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
I have attempted to answer the questions. It was fun, and I learnt many new things.