write a shell script to identify the given string is
palindrome or not?
Answer Posted / sunny garg
echo "Enter the string"
read s
echo "$s -gt temp"
rvs="$(rev temp)"
if [ $s -eq $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What are the four fundamental components of every file system on linux?
How to get script name inside a script?
What is sed in shell script?
How can you find out how long the system has been running?
What is a shell environment?
What is the first line in every perl script called?
What is a command line shell?
How will you pass and access arguments to a script in linux?
How do I open the shell prompt?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Write a script to print the first 10 elements of fibonacci series.
wats the deinitions for shell utility and filter?
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 ?
What is the way to do multilevel if-else's in shell scripting?
What is shell and terminal?