write a shell script to identify the given string is
palindrome or not?
Answer Posted / rag sagar.v
echo Enter the string
read s
echo $s > temp
rvs="$(rev temp)"
if [ $s = $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
Is This Answer Correct ? | 409 Yes | 149 No |
Post New Answer View All Answers
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
what is info area how many types?
Why is used in shell scripting?
Explain about shebang?
How can I send a mail with a compressed file as an attachment?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is c in shell script?
What are the different communication commands available in the shell?
What is bash command used for?
How do we create command aliases in a shell?
How many fields are present in a crontab file and what does each field specify?
What happens when you type ls?
Write the syntax for "if" conditionals in linux?
what is tickets $ what low,medium,high priorite pls define time also