Skip to content

Update homework.sh#1

Open
MikeVitvi wants to merge 3 commits intomainfrom
assignment
Open

Update homework.sh#1
MikeVitvi wants to merge 3 commits intomainfrom
assignment

Conversation

@MikeVitvi
Copy link
Copy Markdown
Owner

Answered questions from the 1 Module and the first lesson

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

I was following the instruction provided in the assignment to complete the homework which include creating directories, verifying directories, generating files, appending text to files, and ensuring the proper execution of commands.

What did you learn from the changes you have made?

Specifically, I learned how to create directories, generate files, append text to files.

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

o be honest, at that moment, I didn't have another approach in mind. Everything felt quite challenging for me, and I was focused on understanding and completing the tasks using the available resources and knowledge.

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

Yes, I experienced challenges during the assignment. One issue I faced was with running the ./homework.sh command. Despite following the instructions provided, I encountered difficulties executing the script directly. To overcome this, I resorted to manually copying and pasting the commands from the script into the terminal. While this workaround allowed me to proceed with the tasks, it was less efficient than running the script as intended.

How were these changes tested?

The changes were tested by verifying each step of the process in the terminal. After executing each command to create directories, generate files, and append text

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

I encountered these issues while practicing the homework assignment. Initially, I faced the 'bash: ./homework.sh: No such file or directory' error, indicating that the shell couldn't locate the script file in the current directory. After verifying the file's location, I then encountered 'Permission denied' and 'Operation not permitted' errors, suggesting issues with file permissions and filesystem properties. Because of these errors, I needed to resort to manually copying and pasting the commands from the script into the terminal to proceed with the assignment.

@mentions of the person or team responsible for reviewing proposed changes (At least 2 people)

Checklist

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

Answered questions from the 1 Module and the first lesson
Comment thread 03_homework/homework.sh
Comment on lines 17 to 23
# 5. How would you append to one of the existing files " and machine learning!"?

# 6. How would you verify that the text was indeed appended to the existing file?

# 7. How would you delete all files except for the one with the appended text?

# 8. How would you navigate back to the parent directory containing all the directories?
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing

Comment thread 03_homework/homework.sh
to verify creation of all of directories I will be using "ls"
# 3. In each directory, how would you create 5 .txt files and write "I love data" into each within the directories?

first I would find a path after what I would create 5 directories, after what I will navigate to each of directories and create there 5 txt files in which I will write text "I love data"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider for loop and echo

@MikeVitvi
Copy link
Copy Markdown
Owner Author

@dwz92 Should I include the missing information in the lines where it was missed, or can I simply add comments? Alternatively, do I need to submit a new request? Lastly, does this count as completing of the assignment? If not, could you please provide guidance on how to complete it? Thank you for your attention to this matter.

@MikeVitvi
Copy link
Copy Markdown
Owner Author

uoft-dsi-c3-homework-20240426

Copy link
Copy Markdown
Owner Author

@MikeVitvi MikeVitvi Apr 26, 2024

Choose a reason for hiding this comment

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

uoft-dsi-c3-homework-20240426

@dwz92
@michaeladrouillard

Copy link
Copy Markdown

@juliagallucci juliagallucci left a comment

Choose a reason for hiding this comment

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

0 of 6 clues correct, please revise

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.

4 participants