NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | shell pipelines#385
Open
ZabihollahNamazi wants to merge 3 commits intoCodeYourFuture:mainfrom
Open
NW | 2026-mar-sdc | Zabihollah Namazi | Sprint 2 | shell pipelines#385ZabihollahNamazi wants to merge 3 commits intoCodeYourFuture:mainfrom
ZabihollahNamazi wants to merge 3 commits intoCodeYourFuture:mainfrom
Conversation
SlideGauge
reviewed
May 3, 2026
SlideGauge
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
| # 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 |
There was a problem hiding this comment.
Good catch of Entry/Exit events via $1
|
Good job, just a couple of notes from me to fix please |
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.
Self checklist
Changelist
shell pipeline exercises are done and please if you could check them , thanks