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 |
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
In shell scripting if text is surrounded by single quotes what does it denotes?
what is tickets $ what low,medium,high priorite pls define time also
How to print some text on to the screen?
What are script files?
What are the default permissions of a file when it is created?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
What is scripting used for?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
how to read systems current date and time
What is the syntax of "expr" command?
What is a batch file used for?