-
-
Identify the Mistake
What is wrong with the code
a=0 b=0 IF [$a -eq $b] then echo a is equal to b else echo " a is not equal to b" fi
a) Variables should be assigned on individual rows not next next
b) in if statement there should be space after "[" and before "]"
c) first echo statement should be enclosed within ""
d) IF and FI should be in lower case -
-
-
Command to Print the 3rd Argument
What is the command to print the 3rd argument within this variable var={123 def ghi 456};
a) echo $3v
b) echo $v3
c) echo$3$v
d) None of these -
-
Find inode Number
Create a program to find out the inode number of any desired file
-
How to write a shell script ?
My question is how to create multiple users , using shell script ?
How to check the script is successfully execute or not?
-
Find Smallest of 3 Numbers
Write a shell script to find the smallest of three numbers that are read from the keyboard.
-
-
-
Print numbers in the reverse order
Write a shell script that accept any number of arguments and print them in the reverse order
Logging Script
Write a shell script that reports the logging in of a specified user within one minute after he/she logs in. The script automatically terminates if the specified user does not login during a specified period of time.
Pipeline of Commands
Write a pipeline of commands, which display on the monitor as well as save the information about the number of users using the system at present on a file called usere.ux
Ans