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 is eval in shell script?
What are different types of shell?
What language is bash written in?
What is the fastest scripting language?
What is the first line in every perl script called?
How to get the last line from a file using just the terminal?
What is a scripting language simple definition?
What is difference between shell and bash scripting?
What are the different types of variables used in shell script?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is a shell environment?
What is the default shell of solaris?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is a command line shell?
What are "c" and "b" permission fields of a file?