Virajsinh

Palindrome_1_OS_Script

Oct 8th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. echo -n "Enter String : "
  2. read s
  3. echo $s > temp
  4. rvs="$(rev temp)"
  5. if [ $s = $rvs ]
  6. then
  7. echo "It is Palindrome"
  8. else
  9. echo "It is Not Palindrome"
  10. fi
Add Comment
Please, Sign In to add comment