Sneaker's Stub – The Grey Stuff!

Shell Scripting Program to check if a Number is Palindrome

Palindrome Numbers are the numbers whose reverse will also give you the same number. For Example, 567 is not a palindrome number because the reverse of 567 is 765 which is not same as the number, whereas 8778 is a palindrome which on reverse will also give the same number.

Following is a shell scripting program to check if a number is Palindrome or not.

Explanation:

#!/bin/bash – This line tells the shell environment that this program is a bash script and /bin/ is the location in operating system where the bash is.

clear – will clear the bash terminal so that no other program will appear on that.