write a shell script to identify the given string is
palindrome or not?
Answer Posted / sathya
echo "enter a string"
read str
rev=`expr $str|rev`
if [ $rev = $str ]
then
echo "the given string is palindrome"
else
echo "the given string is not palindrome"
fi
| Is This Answer Correct ? | 20 Yes | 14 No |
Post New Answer View All Answers
What is a shell made of?
What is web script?
What is a shell in operating system?
How do I run a shell script in powershell?
Is shell scripting a programming language?
What is a command line shell?
What is shell terminal?
How many fields are present in a crontab file and what does each field specify?
What is console line?
What is path in shell script?
What is shell scripting used for?
Is powershell a bash?
How do I set bash as default shell mac?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again