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 can you find out how long the system has been running?
What exactly is a shell?
What is shell and terminal?
what is tickets $ what low,medium,high priorite pls define time also
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is shell geeksforgeeks?
How will you emulate wc –l using awk?
What is the meaning of $1 in shell script?
what is info area how many types?
How will you pass and access arguments to a script in linux?
How do I open the shell in cmd?
How do we delete all blank lines in a file?
What is shift command in shell script?
What are the types of script?
Explain how you Automate your application using Shell scripting.