Advertisement
Xioth

Bash - TD1 - plusGrand.sh

Jan 18th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if [ $# = 2 ]
  4. then
  5.     if [ $1 -gt $2 ]
  6.     then
  7.         echo $1
  8.     else
  9.         echo $2
  10.     fi
  11. else
  12.     echo "Ce programme requière 2 arguments !"
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement