Skip to content

UofT-DSI | Shell - Assignment 1#1

Open
akorade wants to merge 4 commits intomainfrom
assignment
Open

UofT-DSI | Shell - Assignment 1#1
akorade wants to merge 4 commits intomainfrom
assignment

Conversation

@akorade
Copy link
Owner

@akorade akorade commented Nov 5, 2025

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

Completing the implementation for the assignment

What did you learn from the changes you have made?

From this assignment, I learned the fundamental Bash commands including directory operations, file operations, and advanced commands such as find and unzip as well as pattern matching.

Was there another approach you were thinking about making?

If so, what approach(es) were you thinking of? may be advanced error handling and breaking the script into reusable functions and configuration based approach example

LOG_TYPES=("server" "user" "event")
SENSITIVE_PATTERNS=("*ipaddr*" "*ssn*" "*credit*")
REQUIRED_DIRS=("analysis" "output" "data/raw" "data/processed")
# Process dynamically
for log_type in "${LOG_TYPES[@]}"; do
    mkdir -p "data/processed/${log_type}_logs"
    find data/raw -name "*${log_type}*.log" -exec cp {} "data/processed/${log_type}_logs/" \;
done

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

No challenges as i found assignment to be quite straightforward

How were these changes tested?

local testing using bash command

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

Checklist

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

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

github-actions[bot]

This comment was marked as outdated.

github-actions[bot]

This comment was marked as outdated.

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

Copy link

@xindizhang xindizhang left a comment

Choose a reason for hiding this comment

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

Well done, amazing work — the assignment is complete, and no further changes are needed! Great PR description!

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