write a shell program to check wheather a given string is
pallindrome or not?

Answer Posted / ishita sen

echo Enter the string
read s
echo $s > temp
rvs="$(rcs temp)"
if [ $s = $rcs ]
then
echo "it is palindrome"
else
echo " it is not"
fi

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use shell scripting?

554


Is shell scripting a language?

587


How does path variable work?

549


What is the command to find out today's date?

591


Write a script to print the first 10 elements of fibonacci series.

1772






How can I send a mail with a compressed file as an attachment?

557


What are the advantages of shell script?

526


Why is shell scripting important?

577


What does chmod do?

578


What is option in shell script?

561


What is the best scripting language?

568


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

2978


What is shell and terminal?

577


is this growing field and what is average package in this?

1875


How can we find the process name from its process id?

711