Untitled

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

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

inverse=$(echo $1 | rev)

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