write a shell script to identify the given string is
palindrome or not?
Answer Posted / sathya
echo "enter a string"
read str
rev=`expr $str|rev`
if [ $rev = $str ]
then
echo "the given string is palindrome"
else
echo "the given string is not palindrome"
fi
| Is This Answer Correct ? | 20 Yes | 14 No |
Post New Answer View All Answers
How do I run a bin bash script?
What is the meaning of $1 in shell script?
What is a command line shell?
Why is used in shell scripting?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Write a script to print the first 10 elements of fibonacci series.
What is shell prompt?
What is shift command in shell script?
What happens on a system call?
What are types of shells?
What is bash coding?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
what is tickets $ what low,medium,high priorite pls define time also
How to get the first line from a file using just the terminal?
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.