U of T DSI | Shell - Assignment #1 (Part 1 & 2)#1
Open
StephanieShishis wants to merge 4 commits into
Open
Conversation
…into assignment
Owner
Author
|
For Part 2: I modified my coworkers code as they used the incorrect command rf instead of rm. I fixed the section and finished the merge by saving the file, using git add and git commit. I then re-tested the code in the terminal to make sure it worked. |
|
Great work! |
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? (e.g. Adding or removing code, refactoring existing code, adding reports)
In the script, I needed to add code that allowed me to organize raw data into folders. These folders were specific subdirectories based on server, user and event log files. I also removed files containing IP addresses for privacy. Lastly, I created an inventory file that listed a summary of all the processed files.
What did you learn from the changes you have made?
I was able to use Bash commands that I learned in the live learning session such as mkdir, mv, cp, rm, ls, touch, > and >>. I also was able to get more comfortable working both in the terminal and open coding files to create a script.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I could have used the find command to list all files instead of listing each folder with ls. I also think there were some better ways to complete some tasks in fewer steps but any advice on this would be appreciated.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
A big challenge was remembering all the commands from the live learning lectures and also ensuring I was creating folders in the right directories. cd was a super useful function and helped me remember where I was in the code.
How were these changes tested?
I tested the script using bash assignment.sh before committing any changes and double checked my user profile on my remote desktop to ensure the folders were created correctly and it contained the right information.
A reference to a related issue in your repository (if applicable)
Checklist