script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.
Answer Posted / srikanth
The Question is like this
Question:
x=10;
y=20;
[ $x -ne $y ]
echo $?
Ans is 0, because the condition x value not equal to y
value. It is true. so... that value is 0. If the conditions
is false then it displays output 1.
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
What is the difference between rmdir and rm r?
What does ls mean in linux?
Which Command used to lock user password in Linux?
You wish to restore the file memo.ben which was backed up in the tarfile mybackup.tar. What command should you type?
What does cd do in linux?
How can I type in cmd?
What does grep grep do?
What is phony in makefile?
What is bash command?
Find command can search for files by
What is the use of ls command?
How do you do nslookup?
What is the purpose output of cd command?
What is difference between comm and CMP command?