Question: Write script/command to:- a. Print the all the elements of an array without using loops. b. Print the last argument of the last command c.
Write script/command to:-
a. Print the all the elements of an array without using loops.
b. Print the last argument of the last command
c. Print the number of arguments passed to the script. The ID of the current script.
d. Print “ERROR ERROR ERROR” if VAR is null.
e. List all the files in a directory including hidden files.
f. Make a Directory Named “myNewDirectory”.
g. Make a text file named “myNewFile1” with “HELLO” written in it.
h. Open manual page for `pwd` command
i. Remove “myNewFile1”.
j. Remove “myNewDirectory”.
k. Create infinite until loop
l. Divides left hand operand (a) by right hand operand (b) and returns remainder
Step by Step Solution
3.45 Rating (161 Votes )
There are 3 Steps involved in it
a echo arr Print all array elements b This is Bashonly echo 1 c The number of arguments is unlike ar... View full answer
Get step-by-step solutions from verified subject matter experts
