Skip to content

West Midlands | 26 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises#364

Open
Iswanna wants to merge 12 commits intoCodeYourFuture:mainfrom
Iswanna:tools/sprint1-individual-shell-tools-exercises
Open

West Midlands | 26 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises#364
Iswanna wants to merge 12 commits intoCodeYourFuture:mainfrom
Iswanna:tools/sprint1-individual-shell-tools-exercises

Conversation

@Iswanna
Copy link

@Iswanna Iswanna commented Mar 13, 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

This pull request contains solutions for all exercises in the individual-shell-tools directory. The scripts cover the use of awk, cat, grep, ls, sed, and wc to process and analyze text files as described in the exercise requirements.

Changes

  • awk/

    • script-01.sh to script-07-stretch.sh: Extract player names, cities, scores, and perform calculations from scores-table.txt.
  • cat/

    • script-01.sh to script-04-stretch.sh: Output contents of helper files, with and without line numbers.
  • grep/

    • script-01.sh to script-07.sh: Extract and count lines from dialogue.txt based on various patterns and conditions.
  • ls/

    • script-01.sh to script-04.sh: List and sort files and directories, including recursive and time-based sorting.
  • sed/

    • script-01.sh to script-06.sh: Perform text replacements, line removals, and formatting changes in input.txt.
  • wc/

    • script-01.sh to script-03.sh: Count words, lines, and characters in helper files.

Testing

All scripts have been tested to ensure they produce the expected output as described in the exercise comments.

Iswanna added 11 commits March 9, 2026 07:58
…-table.txt

- script-01.sh: Outputs only the player names (first column) from scores-table.txt.
- script-02.sh: Outputs player names and their cities (first and second columns) from scores-table.txt.
script-03.sh: Outputs each player's name and their first attempt score from scores-table.txt.
script-04.sh: Outputs names and last attempt scores for players in London from scores-table.txt.
- script-05.sh: Outputs each player's name and the number of times they've played.
- script-06-stretch.sh: Calculates and outputs the total of all players' first scores.
- script-07-stretch.sh: Outputs each player's name and the sum of all their scores.
- script-01.sh: outputs contents of helper-1.txt
- script-02.sh: outputs contents of all .txt files in helper-files directory
- script-03.sh: outputs helper-3.txt with line numbers using cat -n
- script-04-stretch.sh: outputs all .txt files in helper-files directory with line numbers using cat -n
- script-01.sh: outputs lines spoken by the Doctor (lines starting with 'Doctor:')
- script-02.sh: outputs all lines containing the word 'Doctor', case-insensitive
- script-03.sh: outputs the number of lines containing 'Doctor' (case-insensitive)
- script-04.sh: outputs all lines that do not contain 'Hello' (case-insensitive)
- script-01.sh: fix grep syntax for matching lines starting with 'Doctor:'
- script-05.sh: add command to show lines containing 'cure' and the preceding line
- script-06.sh: add command to list .txt files containing Doctor's dialogue
- script-07.sh: add command to count Doctor's dialogue lines in each .txt file
- script-01.sh: list files and folders in the current directory
- script-02.sh: list files in child-directory
- script-03.sh: recursively list all files and folders
- script-04.sh: list and sort files in child-directory by modification time (newest and oldest first)
- script-01.sh: replace all occurrences of 'i' with 'I'
- script-02.sh: remove all numbers from the text
- script-03.sh: remove lines containing any number
- script-04.sh: replace "We'll" with "We will"
- script-05.sh: move leading numbers to the end of the line
- script-06.sh: add a space after each comma not already followed by a space
… files

- script-01.sh: output word count for helper-3.txt
- script-02.sh: output line count for helper-3.txt
- script-03.sh: output line, word, and character counts for all .txt files in helper-files
@github-actions

This comment has been minimized.

…ools/sprint1-individual-shell-tools-exercises
@Iswanna Iswanna changed the title West Midlands | 2 Feb Piscine | Iswat Bello | Tools Sprint 1 | Individual shell tools exercises West Midlands | 2-Feb-Piscine | Iswat Bello | Tools Sprint 1 | Individual shell tools exercises Mar 13, 2026
@github-actions

This comment has been minimized.

@Iswanna Iswanna 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 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@Iswanna Iswanna added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@Iswanna Iswanna changed the title West Midlands | 2-Feb-Piscine | Iswat Bello | Tools Sprint 1 | Individual shell tools exercises West Midlands | 2 Feb Piscine | Iswat Bello | Tools Sprint 1 | Individual shell tools exercises Mar 13, 2026
@github-actions

This comment has been minimized.

@Iswanna Iswanna added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@Iswanna Iswanna changed the title West Midlands | 2 Feb Piscine | Iswat Bello | Tools Sprint 1 | Individual shell tools exercises West Midlands | 2 Feb Piscine | Iswat Bello | Sprint 1 | Individual shell tools exercises Mar 13, 2026
@Iswanna Iswanna closed this Mar 13, 2026
@Iswanna Iswanna deleted the tools/sprint1-individual-shell-tools-exercises branch March 13, 2026 21:05
@Iswanna Iswanna restored the tools/sprint1-individual-shell-tools-exercises branch March 13, 2026 21:07
@Iswanna Iswanna reopened this Mar 13, 2026
@Iswanna Iswanna added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
@Iswanna Iswanna changed the title West Midlands | 2 Feb Piscine | Iswat Bello | Sprint 1 | Individual shell tools exercises West Midlands | 2026 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises Mar 14, 2026
@Iswanna Iswanna changed the title West Midlands | 2026 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises West Midlands | 26 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises Mar 14, 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. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant