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
What is the default ubuntu terminal?
What is the purpose of scripting?
How to write a function?
What are the advantages of shell scripting?
What are the two files of crontab command?
How do I run a shell script on a mac?
What does chmod do?
How would you compare the strings in a shell script?
How can you get the value of pi till a 100 decimal places?
Where is bash history?
What will happen to my current process when I execute a command using exec?
How does shell scripting work?
What is @echo off?
How do I run a powershell script?
What is shell company all about?