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
What language is used in terminal?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What shell is bin sh?
Print the 10th line without using tail and head command.
What is path variable bash?
What is path in shell script?
What is meant by $1 in shell script?
Is powershell a bash?
What is another name for a bash shell script that you might see?
What are the disadvantages of shell scripting?
What does $0 mean in shell script?
What are the 3 standard streams in linux?
How can the contents of a file inside jar be read without extracting in a shell script?
How do you know which shell I am using?
Is bash a shell script?