script is like
x=10;
y=20;
[$x-ne$y];
echo $
please give me output.
Answers were Sorted based on User's Feedback
Answer / 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 |
What is ll command in unix?
How do you create a text file in linux terminal?
What are the basic dos commands?
What are system commands?
Compare between SYS V launched processes and Xinetd processes in Linux.
What is nbtstat command?
What file type is a makefile?
What is top command in linux?
Can I delete .bash history?
What are the options of wc command?
What are linux commands useful?
Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.