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 is the best scripting language?
How do scripts work?
How does ls command work?
How do I open the shell in cmd?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What language is shell scripting?
Why is shell scripting important?
What is a scripting language simple definition?
What happens on a system call?
What are the advantages of using shell scripts?
State the advantages of shell scripting?
How do we delete all blank lines in a file?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
Write a shell script to get current date, time, user name and current working directory.
Explain about debugging?