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
What are the advantages of using shell scripts?
What does path stand for?
What is bash eval?
Write down the syntax for all the loops in shell scripting.
What is bash used for?
What is the significance of $#?
What is wc in shell script?
What is the syntax of while loop in shell scripting?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is a shell environment?
What is subshell?
What does $@ mean in shell?
How do I run a powershell script?
What can you do with powershell?
What is bash coding?