Skip to content

UofT-DSI | Shell - Assignment 1#1

Open
delphables wants to merge 6 commits intomainfrom
assignment
Open

UofT-DSI | Shell - Assignment 1#1
delphables wants to merge 6 commits intomainfrom
assignment

Conversation

@delphables
Copy link
Owner

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

  • Create data/
  • Move rawdata/ to data/raw/
  • List contents of data/raw/
  • Create data/processed/server_logs, data/processed/user_logs, data/processed/event_logs
  • Copy server.log, user.log, event.log into their respective processed subfolders
  • Remove files containing ipaddr from data/raw/ and data/processed/user_logs/
  • Write an inventory of all files in processed subfolders to data/inventory.txt

What did you learn from the changes you have made?

  • How to use shell globs to target specific files (e.g., server.log)
  • How to structure scripts so they work from a relative working directory

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

I intentionally stayed with the slide-covered commands for this assignment.

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

  • Handling previously created newproject/ directories between runs. I cleaned the workspace before re-running.
  • Ensuring patterns matched only the intended files (verified with ls checks before/after).

How were these changes tested?

  • Ran bash 02_activities/assignments/assignment.sh from the repo root.
  • Verified:
    • newproject/data/ exists
    • newproject/data/raw/ contains the raw logs
    • Processed subfolders contain the expected copied logs
    • IP address files are removed from the specified locations
    • newproject/data/inventory.txt lists files from processed subfolders

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

N/A

Checklist

  • 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 Missing files in data/processed/server_logs
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.

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

Please address the issues listed above.

@delphables delphables closed this Oct 12, 2025
@delphables delphables reopened this Oct 12, 2025
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 Missing files in data/processed/server_logs
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

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

Please address the issues listed above.

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