summaryrefslogtreecommitdiff
path: root/exemple5
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2024-03-10 22:36:44 +0100
committerjerome <jerome@xlinfo.fr>2024-03-10 22:36:44 +0100
commit9c6790810256c826f71e0a0a3c4b54844cc24477 (patch)
tree1d3d72ec4e927c77ac6ca84af80f89f4144f5af7 /exemple5
parentdb7f0267f0c836b6a06d42c71757da4366b88a34 (diff)
downloadbash_tutorial-9c6790810256c826f71e0a0a3c4b54844cc24477.tar.gz
bash_tutorial-9c6790810256c826f71e0a0a3c4b54844cc24477.zip
maj palindrome
Diffstat (limited to 'exemple5')
-rwxr-xr-xexemple54
1 files changed, 3 insertions, 1 deletions
diff --git a/exemple5 b/exemple5
index 87f1908..72ef4f8 100755
--- a/exemple5
+++ b/exemple5
@@ -30,7 +30,9 @@ else
echo "$nb est positif"
fi
-# palindrome : man rev
+# palindrome
+# man rev
+# man tr
read -p "Choisis un palindrome : " rep
pal=$(echo $rep|tr [A-Z] [a-z])
if [ $(echo $pal|rev) = $pal ]; then