Skip to content

Assignment#1

Merged
slathwal merged 7 commits intomainfrom
assignment
Aug 8, 2025
Merged

Assignment#1
slathwal merged 7 commits intomainfrom
assignment

Conversation

@slathwal
Copy link
Owner

@slathwal slathwal commented Jul 31, 2025

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

I am creating a bash script to organize and process the data. The script performs the following:

  • make a new data directory where we will organize client files
  • move rawdata directory inside the data directory
  • make a new directory in data called processed with subdirectories called event_logs, user_logs and server_logs
  • Find and move event, server and user files from raw data to the processed data
  • Find and remove any files that contain ipaddresses frow raw and processed data
  • Save the final list of processed files in a file called inventory.txt

What did you learn from the changes you have made?

I learned how to use shell to interact with the file system on my computer. I learned to create directories and files, copy, move and delete files and folders. I also learned how to use wildcard to perform operations on multiple files at the same time.

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?

Yes, I am still working on understanding the difference in commands when they end with a slash and when they don't. For some commands it does not seem to make a difference, whereas for others it does. I overcame those issues by testing my commands in the terminal one by one and making sure they are performing as expected. However, I haven't developed an intuitive understanding of the slash-at-end yet.

How were these changes tested?

The changes were tested by running each command one by one as well as by running the bash script locally to make sure it is making the changes as desired.

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

Checklist

  • [Yes ] 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 ls command not run
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 One or more files with ipaddr in data/raw not removed.
Part 1 - Q8 data/inventory.txt does not exist
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
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.

…into assignment

Kept changes from both assignment and coworker-changes branch.
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

@slathwal slathwal merged commit 626cb7f into main Aug 8, 2025
2 checks passed
@slathwal slathwal deleted the assignment branch October 4, 2025 23:35
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