Skip to content

Final draft of first assignment#1

Open
Hanstke wants to merge 22 commits intomainfrom
assignment
Open

Final draft of first assignment#1
Hanstke wants to merge 22 commits intomainfrom
assignment

Conversation

@Hanstke
Copy link
Copy Markdown
Owner

@Hanstke Hanstke commented Mar 7, 2026

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Updating an existing script to include further automatic organization of files.

What did you learn from the changes you have made?

I learned how to use different branches in GitHub, and how to automate various processes such as listing files in a .txt document.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

No.

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

I had some challenges keeping track of git branches and ensuring my work was occurring in the right branch. I finally deleted and re-made my repository, following the assignment instructions very carefully to ensure the second attempt was successful.

How were these changes tested?

I tested each step in my git bash terminal as I wrote the code to ensure accuracy, and then bashed the whole script to ensure all of the moving parts worked correctly in tandem. It took some trial and error, but at the end I went through the directories and ensured all of the requested steps had been completed successfully.

Checklist

  • [ x ] I can confirm that my changes are working as intended

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 ls command run on wrong directory
Part 1 - Q4
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 Missing directories: data/processed/server_logs, data/processed/user_logs, data/processed/event_logs
Part 1 - Q5 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8 data/inventory.txt does not exist
Part 2

Please address the issues listed above.

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 Missing files in data/processed/server_logs
Part 1 - Q6 Missing files in data/processed/user_logs; Missing files in data/processed/event_logs
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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 Missing files in data/processed/server_logs
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not contain all files in data/processed
Part 2

Please address the issues listed above.

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 data/inventory.txt does not exist
Part 2

Please address the issues listed above.

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

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Looks good. Well done!

Just one observation - Try to avoid excessive use of cd command. You can use relative path instead. It will make your script more readable and maintainable. For example: For question 7
instead of

cd raw
rm *ipaddr*
cd ..
cd processed
cd user_logs
rm *ipaddr*
cd ..
cd ..

you can do:
rm data/raw/*ipaddr* data/processed/user_logs/*ipaddr*

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.

3 participants