Write a shell program to test whether a given number is even
or odd?
Answer Posted / kushal
echo 10|awk '{ if($0 % 2 == 0) print "Even Number"; else
print"Odd Number"}'
tested and certified one liner answer
| Is This Answer Correct ? | 28 Yes | 17 No |
Post New Answer View All Answers
write a shell script to check the failed jobs?
What is scripting autism?
What language is bash written in?
What is inside a seashell?
What are zombie processes?
What is the use of .sh file?
What is a beat in a script?
What is shell environment?
What is bash coding?
What are the advantages of using shell scripts?
What is in a script?
Where are cowrie shells found?
What is the syntax of while loop in shell scripting?
What does path stand for?
What is subshell?