write a shell script to identify the given string is
palindrome or not?
Answer Posted / sunny garg
echo "Enter the string"
read s
echo "$s -gt temp"
rvs="$(rev temp)"
if [ $s -eq $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
How do scripts work?
How to write a function?
How many fields are present in a crontab file and what does each field specify?
What is the use of echo in shell script?
What is a shell script? Can you name some of its advantages?
How to find duplicate record in file using shell script?
How can you get the value of pi till a 100 decimal places?
What language is shell scripting?
What are scripts in psychology?
Is shell and terminal the same?
What does $1 mean in bash?
What is a shell? · Types of shell · what is shell scripting?
How to redirect both standard output and standard error to the same location?
Explain about the slow execution speed of shells?
What is a batch file used for?