Manchester | 26-SDC-Jul | Fithi-Teklom | Sprint 1 | Individual-shell-tools#567
Manchester | 26-SDC-Jul | Fithi-Teklom | Sprint 1 | Individual-shell-tools#567Fithi-Teklom wants to merge 4 commits into
Conversation
|
Results of test: |
SlideGauge
left a comment
There was a problem hiding this comment.
A lot of files do not have trailing new line, add it please as well
| # TODO: Write a command to output the contents of the helper-1.txt file inside the helper-files directory to the terminal. | ||
| # The output of this command should be "Once upon a time...". | ||
|
|
||
| cat helper-files/helper-1.txt No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # 2 I was tempted to take a bite of it. | ||
| # 3 But this seemed like a bad idea... | ||
|
|
||
| cat -n helper-files/helper-3.txt No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # I was tempted to take a bite of it. | ||
| # But this seemed like a bad idea... | ||
|
|
||
| cat helper-files/* No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # TODO: Write a command to output the number of words in the file helper-files/helper-3.txt. | ||
| # The output should include the number 19. The output should not include the number 92. | ||
|
|
||
| wc -w helper-files/helper-3.txt No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # TODO: Write a command to output the number of lines in the file helper-files/helper-3.txt. | ||
| # The output should include the number 3. The output should not include the number 19. | ||
|
|
||
| wc -l helper-files/helper-3.txt No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # 3 19 92 ../helper-files/helper-3.txt | ||
| # 5 30 151 total | ||
|
|
||
| wc helper-files/* No newline at end of file |
There was a problem hiding this comment.
helper-files/ is a sibling of these folders, not a child.
| # TODO: Write a command to output every line in dialogue.txt said by the Doctor. | ||
| # The output should contain 6 lines. | ||
|
|
||
| grep "Doctor" dialogue.txt |
There was a problem hiding this comment.
Does it grabs only lines said by a doctor, not something like "Hello, Doctor!"?
| # TODO: Write a command to output, for each `.txt` file in this directory, how many lines of dialogue the Doctor has. | ||
| # The output should show that dialogue.txt contains 6 lines, dialogue-2.txt contains 2, and dialogue-3.txt contains 0. | ||
|
|
||
| #grep -c "Doctor" *.txt No newline at end of file |
There was a problem hiding this comment.
The line is commented, what was intended here to happen?
| # TODO: Write a command to output input.txt replacing every occurrence of the string "We'll" with "We will". | ||
| # The output should contain 11 lines. | ||
|
|
||
| sed "We'll/We will/g" No newline at end of file |
There was a problem hiding this comment.
How does it know which file to look into?
| # TODO: Write a command which lists the files in the child-directory directory, one per line, sorted so that the most recently modified file is first. | ||
| # The output should be a list of names in this order, one per line: helper-3.txt, helper-1.txt, helper-2.txt. | ||
|
|
||
| # ls -1t child-directory |
|
Could you address my comments please? |
Self checklist
Changelist
Completed the shell tools exercises covering ls, cat, wc, grep, sed, and awk.
What was added: