Skip to content

Glasgow | 26-SDC-Mar | Mohammed Abdoon | Sprint 1 | Individual Shell Tools#336

Open
M-Abdoon wants to merge 6 commits intoCodeYourFuture:mainfrom
M-Abdoon:individual-shell-tools-exercises
Open

Glasgow | 26-SDC-Mar | Mohammed Abdoon | Sprint 1 | Individual Shell Tools#336
M-Abdoon wants to merge 6 commits intoCodeYourFuture:mainfrom
M-Abdoon:individual-shell-tools-exercises

Conversation

@M-Abdoon
Copy link

@M-Abdoon M-Abdoon commented Mar 8, 2026

Learners, PR Template

Self checklist

  • [ X] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • [ X] My changes meet the requirements of the task
  • [ X] I have tested my changes
  • [ X] My changes follow the style guide

Changelist

Exercises soveld.

Questions

No questions, thank you.

@M-Abdoon M-Abdoon changed the title Glasgow | CDS- MARC-2026 | Mohammed Abdoon | Sprint 1 | Individual Shell Tools Glasgow | SDC- MAR-2026 | Mohammed Abdoon | Sprint 1 | Individual Shell Tools Mar 8, 2026
@M-Abdoon M-Abdoon added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 12, 2026
@M-Abdoon M-Abdoon changed the title Glasgow | SDC- MAR-2026 | Mohammed Abdoon | Sprint 1 | Individual Shell Tools Glasgow | 26-SDC-Mar | Mohammed Abdoon | Sprint 1 | Individual Shell Tools Mar 12, 2026
@SlideGauge SlideGauge added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Mar 21, 2026
Copy link

@SlideGauge SlideGauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also check new line in the end of each script please?


# TODO: Write a command to output every line in dialogue.txt said by the Doctor.
# The output should contain 6 lines.
grep "" dialogue.txt No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this command produce lines said only by doctor? Hint: doctor lines start from "Doctor:"


# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do doctor lines start from "doctor:"?


# TODO: Write a command to output every line in dialogue.txt that contains the string "cure", as well as the line before that line.
# The output should contain two pairs of two lines of text (with a separator between them).
grep -B1 "cure" dialogue*.txt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the task request to process all dialogue files?


# 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 -l "^Doctor:" *.txt No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct use of ^Doctor, like!

@SlideGauge SlideGauge added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants