Skip to content

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 1 | Individual shell tools#382

Open
TarasMykytiuk wants to merge 2 commits intoCodeYourFuture:mainfrom
TarasMykytiuk:individual_shell_tools
Open

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 1 | Individual shell tools#382
TarasMykytiuk wants to merge 2 commits intoCodeYourFuture:mainfrom
TarasMykytiuk:individual_shell_tools

Conversation

@TarasMykytiuk
Copy link
Copy Markdown

@TarasMykytiuk TarasMykytiuk commented Mar 15, 2026

Learners, PR Template

Self checklist

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

Changelist

Individual shell tools exercises are done.

@TarasMykytiuk TarasMykytiuk added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Tools The name of the module. labels Mar 15, 2026
@SlideGauge SlideGauge added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Apr 13, 2026
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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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?


# NOTE: This is a stretch exercise - it is optional.

awk '{sum=o; for(i=3; i<=NF; i++) sum+=$i; print $1, sum}' scores-table.txt
Copy link
Copy Markdown

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?

set -euo pipefail

# TODO: Write a command to output every line in dialogue.txt said by the Doctor.
grep "^Doctor:" dialogue.txt
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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.

@SlideGauge
Copy link
Copy Markdown

Good work, I just have two tiny notes, could you fix them?

@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 Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Tools The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants