Skip to content

Completed and Updated Assignment 1 script#1

Merged
ethanthomas365 merged 1 commit intomainfrom
assignment
Feb 27, 2026
Merged

Completed and Updated Assignment 1 script#1
ethanthomas365 merged 1 commit intomainfrom
assignment

Conversation

@ethanthomas365
Copy link
Copy Markdown
Owner

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

  • I can confirm that my changes are working as intended
  • I have tested the script with different file types, and it works as expected

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autograder results

question status comment
Part 1 - Q1
Part 1 - Q2
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

@ethanthomas365 ethanthomas365 merged commit c2d851b into main Feb 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant