Question: 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
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
Get step-by-step solutions from verified subject matter experts
