Question: Subject: Unix Operating Systems 1) Write a script using for statement(s) to printout the following? ****** ***** **** *** ** * ** *** **** *****
Subject: Unix Operating Systems
1) Write a script using for statement(s) to printout the following? ****** ***** **** *** ** * ** *** **** ***** ****** 2) Write Script called maxmin to find out the biggest and the smallest numbers from given five numbers. Numbers are supplies as command line arguments. Print error message if sufficient arguments are not supplied. This script works as follows $ maxmin 17 12 44 5 19 Max = 55 Min = 5 $ maxmin 300 29 277 888 99 Max = 888 Min = 29 3) Write a script called srm (super remove) that deletes the specified filename(s) and asks for confirmation before deletion. Q.4. Write Script calculate, using case statement to perform basic math operation as follows + addition - subtraction x multiplication / division This script works as follows $ calculate 20 / 4, Result = 5 $ calculate 12 - 2, Result = 10 $ calculate 7 x 5, Result = 35 $ calculate 18 + 12, Result = 30 Also this script should check for sufficient command line arguments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
