Skip to content

Homework Submission#1

Open
melihalan wants to merge 1 commit intomainfrom
homework-1
Open

Homework Submission#1
melihalan wants to merge 1 commit intomainfrom
homework-1

Conversation

@melihalan
Copy link
Owner

Added Homework

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

Adding shell codes

What did you learn from the changes you have made?

Shell codes are actually working :)

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

Some things I had to google it like writing to a file

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

Some things I had to google it like writing to a file

How were these changes tested?

I made the code executable and it worked

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

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

@michaeladrouillard
@dtxe

Checklist

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

Added Homework
@melihalan melihalan changed the title Update homework.sh Homework Submission Apr 24, 2024
mkdir dir1 dir2 dir3 dir4 dir5

# 2. How would you verify the creation of all 5 directories?
ls -F
Copy link

Choose a reason for hiding this comment

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

Or you can use

[ -d directory_name ]

Comment on lines +17 to +26
touch dir1/data1.txt
echo "I love data" >> dir1/data1.txt
touch dir2/data2.txt
echo "I love data" >> dir2/data2.txt
touch dir3/data3.txt
echo "I love data" >> dir3/data3.txt
touch dir4/data4.txt
echo "I love data" >> dir4/data4.txt
touch dir5/data5.txt
echo "I love data" >> dir5/data5.txt
Copy link

Choose a reason for hiding this comment

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

Remember the difference between > and >>, note that you are trying to write I love data into these files


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


Copy link

Choose a reason for hiding this comment

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

Need to complete this

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