Open
Conversation
Added Homework
dwz92
reviewed
Apr 24, 2024
| mkdir dir1 dir2 dir3 dir4 dir5 | ||
|
|
||
| # 2. How would you verify the creation of all 5 directories? | ||
| ls -F |
dwz92
reviewed
Apr 24, 2024
Comment on lines
+17
to
+26
| touch dir1/data1.txt | ||
| echo "I love data" >> dir1/data1.txt | ||
| touch dir2/data2.txt | ||
| echo "I love data" >> dir2/data2.txt | ||
| touch dir3/data3.txt | ||
| echo "I love data" >> dir3/data3.txt | ||
| touch dir4/data4.txt | ||
| echo "I love data" >> dir4/data4.txt | ||
| touch dir5/data5.txt | ||
| echo "I love data" >> dir5/data5.txt |
There was a problem hiding this comment.
Remember the difference between > and >>, note that you are trying to write I love data into these files
dwz92
reviewed
Apr 24, 2024
|
|
||
| # 7. How would you delete all files except for the one with the appended text? | ||
|
|
||
|
|
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.
Added Homework
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Adding shell codes
What did you learn from the changes you have made?
Shell codes are actually working :)
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Some things I had to google it like writing to a file
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Some things I had to google it like writing to a file
How were these changes tested?
I made the code executable and it worked
A reference to a related issue in your repository (if applicable)
@mentions of the person or team responsible for reviewing proposed changes (At least 2 people)
@michaeladrouillard
@dtxe
Checklist