write a shell script to identify the given string is
palindrome or not?
Answer Posted / kirtiranjan sahoo
read -p "Enter a string : " st
rvs=`echo $st | rev`
if [ $st == $rvs ]
then
echo "Palindrome"
else
echo "Not Palindrome"
fi
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What command needs to be used to take the backup?
How do I set bash as default shell mac?
What are the zombie processes?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Why are shell scripts used?
What does sh mean?
What is path in shell script?
What is the syntax of while loop in shell scripting?
How do I stop script errors?
What does path stand for?
What is the significance of the shebang line in shell scripting?
Please give me example of " at command , contrab command " how to use
How will you pass and access arguments to a script in linux?
Explain about gui scripting?
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.