write a shell script to identify the given string is
palindrome or not?
Answer Posted / kirtiranjan sahoo
read -p "Enter a string : " st
rvs=`echo $st | rev`
if [ $st == $rvs ]
then
echo "Palindrome"
else
echo "Not Palindrome"
fi
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
How important is shell scripting?
Where are cowrie shells found?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is shell scripting used for?
What is in a script?
How do we delete all blank lines in a file?
How do you debug a script?
What are the two files of crontab command?
What is the significance of $#?
What is echo $shell?
What is the difference between break and continue commands?
What is a shell script in windows?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.