Skip to content

UofT shell peter assignment1 #1

Open
gitau123 wants to merge 7 commits intomainfrom
assignment
Open

UofT shell peter assignment1 #1
gitau123 wants to merge 7 commits intomainfrom
assignment

Conversation

@gitau123
Copy link
Copy Markdown
Owner

@gitau123 gitau123 commented Apr 12, 2026

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

Added a shell script (assignment.sh) to automate project data setup, including creating a directory structure, downloading and extracting raw data, copying log files into categorized folders, removing files that contain IP addresses for privacy, and generating a file inventory.

What did you learn from the changes you have made?

The importance of creating a destination directory before moving files into it.
How to use unzip -d
How to use find -type f

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

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

mv ./rawdata ./data/raw didnt work I had to use mv ./rawdata.zip ./data/raw
when I did ./rawdata.zip ./data/raw/ the "raw"created was a file and not a directory.
I had a challenge copying files like server_logs
I had a challenge getting to navigate and correcting some of the errors I encountere

How were these changes tested?

i tested using ls and cd commands to locate the directories
I used bash assignment.sh and also checked using ls and cd

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

Checklist

  • 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 rawdata not moved to data/raw
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

Please address the issues listed above.

Copy link
Copy Markdown

@KasraVakiloroayaei KasraVakiloroayaei left a comment

Choose a reason for hiding this comment

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

Incomplete

You will need to try to get the assignment checker to verify/check off all sections for assignment to be completed.

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 rawdata not moved to data/raw
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.

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 rawdata not moved to data/raw
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2

Please address the issues listed above.

Comment thread 02_activities/assignments/assignment.sh Outdated
# 2. Move the ./rawdata directory to ./data/raw (eg. move it into ./data and rename it to raw)

mkdir ./data/raw/
mv ./rawdata.zip ./data/raw/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please try the following:

mv ./rawdata ./data/raw

You do not have to work with the zip, rather the directory itself

Comment thread 02_activities/assignments/assignment.sh Outdated

mkdir ./data/raw/
mv ./rawdata.zip ./data/raw/
unzip ./data/raw/rawdata.zip -d ./data/raw/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similarly may not be necessary.

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

@KasraVakiloroayaei KasraVakiloroayaei left a comment

Choose a reason for hiding this comment

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

great work!

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