Skip to content

Assignment shell - #1

Open
sherryydu wants to merge 10 commits into
mainfrom
assignment_shell
Open

sherryydu wants to merge 10 commits into
mainfrom
assignment_shell

Conversation

@sherryydu

@sherryydu sherryydu commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

TITLE: UofT-DSI | Shell - Assignment 1

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

I added code to the assignment_script.sh to created an automated file organization workflow. In this workflow, I refined my file organization (i.e., created new folders), and move specific files into specific folders. I also removed sensitive data and created a text file to show this file organization structure.

What did you learn from the changes you have made?

I learned how to use shell to automate processes related to data organization, how to select large amounts of files with specific strings and move/copy them in the same line of code, how to comment things out, how to pull/push commits, and handle merge conflicts..

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

I did have another approach that I was thinking of making for when I wanted to move files from another folder to a new one. I was initially going to use mkdir, then cd, then cp, and then rm the old files. But I realized there was a simpler way that would limit the lines of code needed.

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

I think my main challenges were trying to make sure that I captured all files with specific strings in them. I initially used a wildcard (*) only on the end of the file name, but I realized it was better to use it for both the beginning of the file name and end. My other challenge was that I initially thought I had no merge conflicts, because everything looked good on the Autograder and I had no prompts when I merged my coworker's changes. However, after just looking into my assignment_script.sh, I found that my coworker added a command (rf) that didn't exist. To resolve this, I just deleted it in VS code and pushed this commit.

How were these changes tested?

I tested my changes using Zsh within the Terminal in VS code, but also using Apple's Terminal application. I mainly used a combination of git status, git log --oneline, ls and cat to see if my changes were working. I also checked my folders in Finder to verify if files were moved properly.

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

N/A

Checklist

  • I can confirm that my changes are working as intended

@github-actions

Copy link
Copy Markdown

Autograder results

question status comment
Part 1 - Q1 ✅
Part 1 - Q2 ✅
Part 1 - Q3 ✅
Part 1 - Q4 ✅
Part 1 - Q5 ✅
Part 1 - Q6 ❌ Missing files in data/processed/user_logs
Part 1 - Q7 ❌ One or more files with ipaddr in data/raw not removed.
Part 1 - Q8 ✅
Part 2 ❌ coworker-changes branch not found in commit history

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Autograder checks failed. Please address the issues listed in the results comment.

@github-actions

Copy link
Copy Markdown

Autograder results

question status comment
Part 1 - Q1 ✅
Part 1 - Q2 ✅
Part 1 - Q3 ✅
Part 1 - Q4 ✅
Part 1 - Q5 ❌ No server log files in data/raw
Part 1 - Q6 ❌ No user log files in data/raw; No event log files in data/raw
Part 1 - Q7 ✅
Part 1 - Q8 ✅
Part 2 ❌ coworker-changes branch not found in commit history

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Autograder checks failed. Please address the issues listed in the results comment.

@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Autograder checks failed. Please address the issues listed in the results comment.

@github-actions

Copy link
Copy Markdown

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 ✅

All autograder tests passed. This submission is approved by the autograder.

@github-actions

Copy link
Copy Markdown

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 ✅

All autograder tests passed. This submission is approved by the autograder.

@khsergvl

khsergvl commented Oct 3, 2026

Copy link
Copy Markdown

Approved

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.

4 participants