West Midlands | 26 March SDC | Iswat Bello | Sprint 1 | Individual shell tools exercises#364
Open
Iswanna wants to merge 12 commits intoCodeYourFuture:mainfrom
Open
Conversation
…-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
This comment has been minimized.
This comment has been minimized.
…ools/sprint1-individual-shell-tools-exercises
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
This pull request contains solutions for all exercises in the
individual-shell-toolsdirectory. 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.shtoscript-07-stretch.sh: Extract player names, cities, scores, and perform calculations fromscores-table.txt.cat/
script-01.shtoscript-04-stretch.sh: Output contents of helper files, with and without line numbers.grep/
script-01.shtoscript-07.sh: Extract and count lines fromdialogue.txtbased on various patterns and conditions.ls/
script-01.shtoscript-04.sh: List and sort files and directories, including recursive and time-based sorting.sed/
script-01.shtoscript-06.sh: Perform text replacements, line removals, and formatting changes ininput.txt.wc/
script-01.shtoscript-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.