Skip to content

London | 26-March-SDC | Ammad Ur Rehman | Sprint 2 | Shell Pipelines Exercises#479

Open
anosidium wants to merge 16 commits into
CodeYourFuture:mainfrom
anosidium:shell-pipelines
Open

London | 26-March-SDC | Ammad Ur Rehman | Sprint 2 | Shell Pipelines Exercises#479
anosidium wants to merge 16 commits into
CodeYourFuture:mainfrom
anosidium:shell-pipelines

Conversation

@anosidium

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 the exercises.

@anosidium anosidium added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 8, 2026
Comment thread shell-pipelines/sort-uniq-head-tail/script-02.sh Outdated
Comment thread shell-pipelines/tr/script-01.sh Outdated
# TODO: Write a command to show how many times anyone has entered and exited.
# It should be clear from your script's output that there have been 5 Entry events and 4 Exit events.

grep -oE 'Entry|Exit' events.txt | sort | uniq -c 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.

Note: An alternative to using grep is to extract the first field on each line using awk.

@cjyuan cjyuan 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 May 12, 2026
@anosidium anosidium 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 Jun 12, 2026
@anosidium

Copy link
Copy Markdown
Author

Thanks for the review, I've amended my solutions.

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

Changes look good.

# TODO: Write a command to count the number of files in the sample-files directory whose name starts with an upper case letter and doesn't contain any other upper case letters.
# Your output should be the number 7.

s-grep % ls -1 sample-files | grep '^[A-Z][^A-Z]*$' | wc -l 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 is s-grep? Typo?

@cjyuan cjyuan 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 Jun 12, 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