Completed and Updated Assignment 1 script#1
Merged
ethanthomas365 merged 1 commit intomainfrom Feb 27, 2026
Merged
Conversation
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)
I added in the code to first make the directory, move the raw data, list the contents, and then work on making the sub directories and moving them into their appropriate folder. Properly removed the ip addresses and then filed everything into their correct folder. I also added a couple messages as well at the beginning and end.
What did you learn from the changes you have made?
I learnt how to make folders move and copy data as well as properly sort and file data into the directories I wanted. I also learnt that a lot of these functions could be done in one line and that the * function is extremely forgiving in it's placement for what can and can't work when typing everything out. Also learnt that you can make the directories and sub folders in one line of code (took a lot of playing around with code but I got it to work).
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Not really, I was originally going to run everything as it's own line of code, but wanted to play around and see how I could shorten this shell script so I did. Everything else was to just follow the outline of the assignment.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The main challenges were insuring nothing broke (or when using the rm function everything was in the right place). Other issues were with properly cloning git and making sure I was in the correct branch where committing changes and pushing it to this step.
How were these changes tested?
The script was tested by running it and seeing what error messages came back in the terminal when I ran bash assignment.sh. For the github it was about cloning and seeing if it cloned to the directory i wanted it to clone and the pushing and pulling was just using git add/status/log until I was confident everything was going to the right place.
A reference to a related issue in your repository (if applicable)
N/A
Checklist