Answer Posted / madhavi
test is used to validate an expression in shell script.
for ex:in if loop ,is used as follows
if test a > b
{
#some statements
}
fi
instead of
if [ a > b ]
{
#some statements
}
fi
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to calculate the number of passed arguments?
What are script files?
Is shell and terminal the same?
Is cmd a shell?
How will you copy a file from one machine to other?
What is shell environment?
How do I stop script errors?
What is echo in shell?
What does .sh file contain?
What is a shell script? Can you name some of its advantages?
How do we create command aliases in a shell?
Is bash an operating system?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
Is shell scripting useful?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command