write a shell program to check wheather a given string is
pallindrome or not?
Answer Posted / ishita sen
echo Enter the string
read s
echo $s > temp
rvs="$(rcs temp)"
if [ $s = $rcs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
What is the best scripting language?
What does path stand for?
What are the different types of variables used in shell script?
Is bash a shell script?
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.
What does chmod do?
How do you know which shell I am using?
Where are cowrie shells found?
Write down the syntax for all the loops in shell scripting.
wats the deinitions for shell utility and filter?
What is the default shell of solaris?
What does echo $0 do?
Explain about shebang?
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 ?
How to open a read-only file in the shell?