Skip to content

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | shell pipelines#385

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

NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | shell pipelines#385
ZabihollahNamazi wants to merge 3 commits intoCodeYourFuture:mainfrom
ZabihollahNamazi:ZabihollahNamazi-shell-pipelines

Conversation

@ZabihollahNamazi
Copy link
Copy Markdown

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

shell pipeline exercises are done and please if you could check them , thanks

@ZabihollahNamazi ZabihollahNamazi 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 16, 2026
Copy link
Copy Markdown

@SlideGauge SlideGauge left a comment

Choose a reason for hiding this comment

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

Could you adjust settings of your editor? All the scripts does not have trailing new line


# 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.
# Your output should contain 7 files.
ls sample-files | grep '^[A-Z][a-z]*$' # [a-z]* = zero or more lowercase after that , $ = end of this line 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.

Will this regex pass such a filename as "File2.txt"?


# 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.
ls sample-files | grep -c '^[A-Z][a-z]*$' # -c to count lines 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.

Same question as script-03.sh

# The input for this script is the events.txt file.
# 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.
awk '{print $1}' 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.

Good catch of Entry/Exit events via $1

@SlideGauge
Copy link
Copy Markdown

Good job, just a couple of notes from me to fix please

@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 May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants