Untitled

mail@pastecode.io avatar
unknown
sh
2 years ago
225 B
2
Indexable
Never
#!/bin/bash

if [ $# -lt 1 ]; then
    echo Usage : $0 phrase
    exit -1
fi



phrase=$(echo $* | tr -d ' ')
inverse=$(echo $phrase | rev)


if [ $inverse == $phrase ]; then
    echo OUI
else
    echo NON
fi