Skip to content

Commit

Permalink
modified answers in assignment.sh
Browse files Browse the repository at this point in the history
modified 3, 4, 5 answers
  • Loading branch information
liyapaul24 authored Aug 24, 2024
1 parent c1c6e12 commit 463ced8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 02_activities/assignments/assignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ mkdir dir1 dir2 dir3 dir4 dir5
ls

# 3. Create 5 text files in dir2 named file1, file2, file3, file4, and file5
touch dir2/file1 dir2/file2 dir2/file3 dir2/file4 dir2/file5
touch dir2/file1.txt dir2/file2.txt dir2/file3.txt dir2/file4.txt dir2/file5.txt

# 4. Append the words "Hello world" to dir2/file3
echo "Hello world" >> dir2/file3
echo "Hello world" >> dir2/file3.txt

# 5. Verify that file3 contains the words "hello world" by printing the contents of the file in the terminal
cat dir2/file3
cat dir2/file3.txt

# 6. Delete file4
rm dir2/file4
Expand All @@ -29,4 +29,4 @@ rm dir2/file4
rm -r dir4 dir5

# 8. List the contents of the parent directory to verify the deletion of dir4 and dir5
ls
ls

0 comments on commit 463ced8

Please sign in to comment.