Glasgow | 26-SDC-Mar | Mohammed Abdoon | Sprint 2 | Shell Pipelines#411
Glasgow | 26-SDC-Mar | Mohammed Abdoon | Sprint 2 | Shell Pipelines#411M-Abdoon wants to merge 9 commits into
Conversation
SlideGauge
left a comment
There was a problem hiding this comment.
- Could you add trailing new lines please to all the scripts?
- You accidentally committed "implement-shell-tools" as well, remove them please
| # 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. | ||
| sort events.txt | uniq -c No newline at end of file |
There was a problem hiding this comment.
This groups by the full line (person + event type), producing 2 Entry German, 1 Entry Mariana, etc. - a reader has to sum the numbers to find the totals. The task requires the output to clearly show 5 Entry and 4 Exit. You need to count by event type only
| # 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. | ||
| # The word "Event" should not appear in your script's output. | ||
| cut -d' ' -f2 events-with-timestamps.txt | sort | uniq -c No newline at end of file |
There was a problem hiding this comment.
events-with-timestamps.txt is tab-delimited, not space-delimited, thus it affects the work of this script
|
|
||
| # 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]*$' |
There was a problem hiding this comment.
Does it pass something like File1.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 '^[A-Z][a-z]*$' | wc -l No newline at end of file |
There was a problem hiding this comment.
Does it pass something like File2.txt?
|
Could you check my notes please? |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
I checked your notes and fixed the errors. Thank you for your feedback. |
Learners, PR Template
Self checklist
Changelist
exercises solved.