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

Explain about return code?

632


How will you pass and access arguments to a script in linux?

580


determine the output of the following command: echo ${new:-variable}

542


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2170


How to pass an argument to a script?

591






What is mac default shell?

614


Is cmd a shell?

591


What does sh mean?

616


Which is better perl or shell scripting?

557


shell script for reverse the string

914


What does egrep mean?

571


What is the best scripting language?

562


how will you find the total disk space used by a specific user?

576


What can scripts do?

661


What command needs to be used to take the backup?

528