Skip to content

London | 26-SDC-Mar | Khilola Rustamova| Sprint 2 |Shell pipelines #386

Open
HilolaRustam wants to merge 3 commits intoCodeYourFuture:mainfrom
HilolaRustam:shell-pipelines-exercises
Open

London | 26-SDC-Mar | Khilola Rustamova| Sprint 2 |Shell pipelines #386
HilolaRustam wants to merge 3 commits intoCodeYourFuture:mainfrom
HilolaRustam:shell-pipelines-exercises

Conversation

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

Exercise is done.

Questions

@HilolaRustam HilolaRustam added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 17, 2026
set -euo pipefail

# TODO: Write a command to output the names of the files in the sample-files directory whose name starts with an upper case letter and doesn't contain any other upper case letters.
ls sample-files | grep '^[A-Z][^A-Z]*$'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

^[A-Z][^A-Z]*$' is the correct and precise regex - "no other uppercase character", like


# The input for this script is the events.txt file.
# TODO: Write a command to show how many times anyone has entered and exited.
awk '{print $1}' events.txt |sort| uniq -c
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extracting just the event-type column with awk '{print $1}' before counting gives a clean, unambiguous 5 Entry / 4 Exit result, like.

@SlideGauge
Copy link
Copy Markdown

Good job, approved.

@SlideGauge SlideGauge 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 May 3, 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. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants