Write a shell script to looking at the log file to see if
the test has passed or not
Answer Posted / kirtiranjan sahoo
test -f $(find /var/log/messages -name "file.log" )
echo $?
If it returns 0 means passed
if 1 means not passed
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
determine the output of the following command: echo ${new:-variable}
Why is the use of shell script?
How do I start a shell script?
Write down the syntax of "for " loop
What's the difference between scripting and coding?
how to get part of string variable with echo command only?
What is shell application?
What is k shell?
How to pass an argument to a script?
What is bourne shell scripting?
What is the difference between scripting and coding?
What is batch file programming?
Print the 10th line without using tail and head command.
How will you copy a file from one machine to other?