Repository navigation
Conversation
Autograder results
|
…into assignment_shell
Autograder results
All autograder tests passed. This submission is approved by the autograder. |
|
Approved |
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.
What changes are you trying to make?
Updated assignment_script.sh to create the data directory, move rawdata to data/raw, create processed subfolders, copy server/user/event logs, remove IP address files, and generate inventory.txt.
What did you learn from the changes you have made?
How to use wildcards (*) to match files, and how relative paths work after cd into a directory.
Was there another approach you were thinking about making?
I considered using find instead of wildcards, but cp with wildcards was simpler.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
At first I put the commands in the wrong order, so mkdir ran before the parent directory existed. I fixed it by reordering the commands and checking the output with set -x.
How were these changes tested?
Ran the script with bash assignment_script.sh, then checked that the folders were created, IP files were removed, and inventory.txt was correct.
A reference to a related issue in your repository (if applicable)
N/A
A reference to a related issue in your repository (if applicable)
Checklist