UNIX/Linux Bash Shell Scripting: Shell Script to Check Whether a String is Palindrome or not

UNIX/Linux Bash Shell Scripting: Shell Script to Check Whether a String is Palindrome or not

瀏覽:1072
日期:2025-04-25
#!/bin/bash # SCRIPT: palindrome2.sh # USAGE: palindrome.sh or palindrome.sh STRING # PURPOSE: Script to test if a given string is a palindrome. # # In this script I uses the well known method, compare first character # with last character, up to middle o...看更多