Write a shell script to looking at the log file to see if
the test has passed or not
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
tail -f /var/log/messages provided all the messages are
appended to the log.
Is This Answer Correct ? | 4 Yes | 7 No |
What is the command to find out users on the system?
Differentiate between ‘ and ” quotes.
How many prompts are available in a UNIX system?
What makes c shell a more preferable option than the bourne shell?
What is the syntax of "grep" command?
Write down the syntax of "for " loop
What language is used in terminal?
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
What are the different kinds of loops available in shell script?
What is bourne shell scripting?
What is the purpose of scripting?
Write down the syntax for all the loops in shell scripting.