Skip to content

London | 26-SDC-July | Raihan Sharif | Sprint 1 | individual-shell-tools#566

Open
RaihanSharif wants to merge 38 commits into
CodeYourFuture:mainfrom
RaihanSharif:individual-shell-tools
Open

London | 26-SDC-July | Raihan Sharif | Sprint 1 | individual-shell-tools#566
RaihanSharif wants to merge 38 commits into
CodeYourFuture:mainfrom
RaihanSharif:individual-shell-tools

Conversation

@RaihanSharif

Copy link
Copy Markdown

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

Completed all exercises for individual shell tools

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

This comment has been minimized.

@SlideGauge SlideGauge left a comment

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 job, I got just a couple of comments from my side, fix them please.

Comment thread individual-shell-tools/ls/script-04.sh Outdated

# TODO: Write a command which lists the files in the child-directory directory, one per line, sorted so that the most recently modified file is first.
# The output should be a list of names in this order, one per line: helper-3.txt, helper-1.txt, helper-2.txt.
ls -1t

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Right now the script targets the current dir. Is that what we're asked for?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No. Fixed.


# TODO: Write a command to output every line in dialogue.txt that does not contain the word "Hello" (regardless of case).
# The output should contain 10 lines.
grep -vi 'hello' ./dialogue.txt | grep . 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.

The task is to output 10 lines. Does this script do this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No it does not.
Fixed by removing the pipe into grep . which was intended to filter out the blank line.

Comment thread individual-shell-tools/sed/script-02.sh Outdated

# -E is extended regex, needed for + (one or more) quantifier
# [[:space:]] is POSIX compliant
sed -E s'/[0-9]+[[:space:]]//g' ./input.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.

Note, that the output should be " Alisha", not "Alisha". Space has been lost

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed now. I should have read the requirement more carefully.

Comment thread individual-shell-tools/sed/script-03.sh Outdated
# space after number is part of the pattern but not the group
# 2 is everything else
# then print out group 2, a space, and then group 1
sed -E 's/^([0-9]+) (.*)/\2 \1/' input.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.

Clean capture-group swap with a clear comment explaining each group. Well done on one of the trickier ones.

@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. labels Jul 11, 2026
@RaihanSharif RaihanSharif added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jul 13, 2026
@github-actions

This comment has been minimized.

@RaihanSharif RaihanSharif added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 13, 2026
@github-actions

This comment has been minimized.

@RaihanSharif RaihanSharif force-pushed the individual-shell-tools branch from 0a60e4d to 31e3fac Compare July 13, 2026 21:21
@RaihanSharif RaihanSharif added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 13, 2026
@github-actions

Copy link
Copy Markdown

Results of test:
You passed 31/31 tasks.
This task is complete!

@github-actions github-actions Bot added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants