Skip to content

London| 2026-MAR-SDC | Imran Mohamed | Sprint 1 | Individual Shell Tools#344

Open
i786m wants to merge 6 commits intoCodeYourFuture:mainfrom
i786m:individual-shell-tools
Open

London| 2026-MAR-SDC | Imran Mohamed | Sprint 1 | Individual Shell Tools#344
i786m wants to merge 6 commits intoCodeYourFuture:mainfrom
i786m:individual-shell-tools

Conversation

@i786m
Copy link
Copy Markdown

@i786m i786m commented Mar 10, 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

Added the commands as required

@i786m i786m added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 11, 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
Copy Markdown

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

Overall solid work.
I've got a note, though, could you adjust your editor settings so it will add an empty line in the end of each file? Nearly all your files committed do not have it, and it is highlighted by github.


# 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 -iB 1 'cure' dialogue.txt No newline at end of file
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 will happen if dialogue.txt has a word "Cure" in it as well (hint, the task did not require case-insensitiveness)

# TODO: Write a command to output just the names of each player along with the number of times they've played the game.
# Your output should contain 6 lines, each with one word and one number on it.
# The first line should be "Ahmed 3".
awk '{print $1,NF-2}' scores-table.txt No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice use of NF

@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 31, 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