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 use arguments in a script?
How does path variable work?
How do I run a script on mac?
What is echo in shell?
Explain about sourcing commands?
What are the different types of shell scripting?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
Write a command sequence to find the count of each word?
What is the significance of the shebang line in shell scripting?
How to set an array in linux?
What is bash coding?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
Which scripting language is best for automation?
Write a script to print the first 10 elements of fibonacci series.
What is bash command used for?