Guest User

Untitled

a guest
Jun 23rd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. longDate=$(echo ${#date})
  2. lol=0
  3. crypture=""
  4. while test $lol -lt $longDate
  5. do
  6. caractere=$(echo ${date:$lol:1})
  7. case $caractere in
  8. 0) crypture=$(echo $crypture"z");;
  9. 1) crypture=$(echo $crypture"a");;
  10. 2) crypture=$(echo $crypture"b");;
  11. 3) crypture=$(echo $crypture"c");;
  12. 4) crypture=$(echo $crypture"d");;
  13. 5) crypture=$(echo $crypture"e");;
  14. 6) crypture=$(echo $crypture"f");;
  15. 7) crypture=$(echo $crypture"g");;
  16. 8) crypture=$(echo $crypture"h");;
  17. 9) crypture=$(echo $crypture"i");;
  18. *) echo"la date de naissance en est pas une: erreur"
  19. exit;;
  20. esac
  21. lol=$(($lol+1))
  22. done
Add Comment
Please, Sign In to add comment