#!/bin/bash read WORD REV=$(echo $WORD | rev) echo $REV if [ "$REV" = "$WORD" ] then echo '**YES**' else echo '**NO**' fi