What is the use of "test" command?
Answers were Sorted based on User's Feedback
Answer / satchi
"Test" command checks file and directory types and checks
value.
EX: create a empty file test (touch test)
if test -f test
then
echo "File is nonempty"
else
echo "file is empty"
fi
There are different options like -d -b -e.You can explore
all.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manhar chavan
Simply test command is compare two values. it check whether
it is right or wrong.
Is This Answer Correct ? | 0 Yes | 0 No |
I have 2 files and I want to print the records which are common to both.
Write down the syntax for all the loops in shell scripting.
What is use of "cut" command?
How do you find out What is your shell?
What is bash used for?
How will you list only the empty lines in a file (using grep)?
What is egrep?
What is a command line shell?
How to enable the shell to know what program should be run to interpret the script?
What are the different types of variables used in shell script?
What are different types of shell?
What does $@ mean bash?