Skip to content

Comments

Assignment#1

Open
katariamonika wants to merge 5 commits intomainfrom
assignment
Open

Assignment#1
katariamonika wants to merge 5 commits intomainfrom
assignment

Conversation

@katariamonika
Copy link
Owner

@katariamonika katariamonika commented Oct 12, 2025

What changes are you trying to make?

I added and tested the data ingestion script (assignment.sh) to automate file setup, organization, and cleanup.
The script now creates required directories, moves and categorizes files, removes sensitive IP-related logs,
and generates an inventory.txt file that lists all processed data.

What did you learn from the changes you have made?

I learned how to use shell commands such as find, mv, and cp in combination with pattern matching,
conditional directory creation, and file redirection. I also learned how to debug file path issues and verify directory outputs.

Was there another approach you were thinking about making?

I initially considered manually listing files for deletion and movement, but using pattern matching with find
proved to be more scalable and efficient.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

I faced issues with relative paths and ensuring files were being copied to the correct processed subfolders.
I overcame this by echoing intermediate steps and verifying each command’s output before finalizing the script.

How were these changes tested?

I ran bash assignment.sh multiple times after deleting the newproject directory to confirm repeatability.
I verified that all processed files were moved correctly, IP logs were deleted, and the inventory file was generated as expected.

A reference to a related issue in your repository (if applicable)

N/A

Checklist

  • I can confirm that my changes are working as intended

Part 2: Merging Coworker Updates

What changes are you trying to make?

Pulled and merged coworker updates from the upstream repository to incorporate new features and ensure consistency with the shared base script.

What did you learn from the changes you have made?

I learned how to handle merge conflicts, review diffs carefully, and test my script after merging others’ changes to confirm full functionality.

Were there any challenges?

There were some conflicts in assignment.sh due to overlapping file-handling logic. I resolved these by reviewing both sections and keeping the most efficient and logically correct code. I re-ran the script to verify it works as intended.

How were these changes tested?

Re-ran bash assignment.sh multiple times after deleting newproject. Verified that files were properly categorized, sensitive data was removed, and the inventory file generated correctly.

Checklist

  • I can confirm that my script still runs successfully after merging coworker updates.

Copy link

@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
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

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.

2 participants