Write a shell program to test whether a given number is even
or odd?
Answer Posted / santana20142003
$ echo <number> | nawk '{ if($0 % 2 ==0) print $0 "Even
Number" ;\
else print $0 "Odd Number"}'
| Is This Answer Correct ? | 24 Yes | 17 No |
Post New Answer View All Answers
Where are cowrie shells found?
How do you know which shell I am using?
What does path stand for?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is console line?
Is bash an operating system?
What are filters explain sort with all the options available?
What is $1 in shell scripting?
Can we run shell script in windows?
What are the two files of crontab command?
What is eval in shell script?
How to redirect both standard output and standard error to the same location?
What are the zombie processes?
What is a command line shell?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.