-
-
Notifications
You must be signed in to change notification settings - Fork 88
Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 1 | Individual shell tools #382
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,5 @@ | |
| set -euo pipefail | ||
|
|
||
| # TODO: Write a command to output every line in dialogue.txt said by the Doctor. | ||
| grep "^Doctor:" dialogue.txt | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good use of ^Doctor: to anchor the match to the start of the line — this correctly avoids matching lines where "Doctor" appears in the middle of dialogue. |
||
| # The output should contain 6 lines. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,6 @@ | |
| set -euo pipefail | ||
|
|
||
| # TODO: Write a command which _recursively_ lists all of the files and folders in this directory _and_ all of the files inside those folders. | ||
| ls -r | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does the small -r stand for? Will it lead to expected behaviour here? |
||
| # The output should be a list of names including: child-directory, script-01.sh, helper-1.txt (and more). | ||
| # The formatting of the output doesn't matter. | ||
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.
Could you doublecheck the initial value of sum we initialise it with?