Skip to content

Completing shell/git assignment (creating, listing, copying and movin…#1

Merged
faisalapp merged 6 commits intomainfrom
assignment
Aug 16, 2025
Merged

Completing shell/git assignment (creating, listing, copying and movin…#1
faisalapp merged 6 commits intomainfrom
assignment

Conversation

@faisalapp
Copy link
Owner

…g files/folders)

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

Submitting Shell/Git assignment for the first time.

What did you learn from the changes you have made?

I learnt how to create/list/copy/move files/folders using bash shell and how to sync the local work (git) with GitHub.

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

The approach I used seems to be efficient for this assignment

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

The command to unzip file was not working due to certificate check I think. Looking at slack channel, someone mentioned to add key -k in the assignment pre-defined commands which worked.
Other thing I found is when I tried to use windows power shell, multiple directories were not getting created while same is not true on bash shell. It means I should use bash shell to full utilize the bash command.

How were these changes tested?

I checked on running the command one by one on terminal which showed correct result however, when I run bash assignment.sh, it is not creating log folders. I'm uploading my assignment to see if Autograder flags the error.

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

When I run bash assignment.sh, below folders are not created.

mkdir: cannot create directory ‘./data/processed/server_logs’: No such file or directory
mkdir: cannot create directory ‘./data/processed/user_logs’: No such file or directory
mkdir: cannot create directory ‘./data/processed/event_logs’: No such file or directory

Checklist

  • [No ] 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 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
Part 1 - Q8
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

…ing two new folders (one inside the other) in one line.
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

It is found that the command "rf" from coworker does not exist thus discarding the incoming changes. If they mean to use "rm" then it will delete directory "data" and after that we would not be able to run last command to make the inventory file from folder "data"
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 One or more files with ipaddr in data/raw not removed.; One or more files with ipaddr in data/processed/user_logs not removed
Part 1 - Q8 data/inventory.txt does not exist
Part 2

Please address the issues listed above.

… not saved and showing <<<<<<< HEAD. Now removed this HEAD and related part
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

@faisalapp
Copy link
Owner Author

The command "rf" in the incoming changes from coworker was not identified by bash thus rejecting it and keeping the original code

@faisalapp faisalapp merged commit 7c93f37 into main Aug 16, 2025
2 checks passed
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