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
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How will you pass and access arguments to a script in linux?
Why are shell scripts used?
How do you create a shortcut in linux?
What is difference between bash and shell?
How do I run a powershell script?
Is shell scripting a language?
Why is used in shell scripting?
What does the sh command do?
How to check if a directory exists?
Is shell a part of kernel?
Is powershell a bash?
What are scripts in psychology?
How will you print the login names of all users on a system?
Is shell scripting difficult?