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
Given a file find the count of lines containing the word "abc".
What is a shell in operating system?
How will you connect to a database server from linux?
How do we create command aliases in a shell?
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 the command to find out today's date?
How does path variable work?
What is gui scripting?
how will you find the total disk space used by a specific user?
What is batch file programming?
What does chmod do?
What is the syntax of "nested if statement" in shell scripting?
What language is used in terminal?
What is the first line in a shell script?
How do you debug a script?