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
How do I run a .sh file?
What are the types of script?
What are the four fundamental components of every file system on linux?
How do I open the shell prompt?
What are the advantages of shell script?
How do I open a jshell in cmd?
wats the deinitions for shell utility and filter?
How to write a function?
What are types of shells?
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.
How to use arguments in a script?
What does path stand for?
What is shell company all about?
What is an inode block?
What is sudo command?