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 ? | 410 Yes | 149 No |
Post New Answer View All Answers
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
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 does it mean to debug a script?
What are script files?
What is the conditional statement in shell scripting?
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 do you debug a script?
What is the use of "$?" Sign in shell script?
How to redirect both standard output and standard error to the same location?
Why is a script important?
What is a shell in operating system?
Tell something about the super block in shell scripting?
How to get the 3rd element/column from each line from a file?
What language is bash?
What is awk script?