Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Create a script backup.sh which contains a command to create a compressed archive of the work subdirectory 2) Create the following scripts and test
1) Create a script backup.sh which contains a command to create a compressed archive of the worksubdirectory
2) Create the following scripts and test them out.
hello2.sh:
#!/bin/bash name="Ali" echo "Hello $name, have a nice day!"
hello3.sh:
#!/bin/bash echo "Who is there?" read name echo "Hello $name, have a nice day!"
hello4.sh:
#!/bin/bash # use one command-line argument giving name, e.g. ./hello4.sh Ali echo "Hello $1, have a nice day!"
hello5.sh:
#!/bin/bash today=$(date) echo "Hello, the date and time is $today." echo "The date is $(date -I)."
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started