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
Explain about return code?
How will you pass and access arguments to a script in linux?
determine the output of the following command: echo ${new:-variable}
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.
How to pass an argument to a script?
What is mac default shell?
Is cmd a shell?
What does sh mean?
Which is better perl or shell scripting?
shell script for reverse the string
What does egrep mean?
What is the best scripting language?
how will you find the total disk space used by a specific user?
What can scripts do?
What command needs to be used to take the backup?