Advertisement
999ms

5.53

Apr 4th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. if [ -n "$*" ]
  2. then
  3. max=$1
  4. for i in $*
  5. do
  6. if [ "$i" -gt "$max" ]
  7. then
  8. max=$i
  9. fi
  10. done
  11. echo max=$max
  12. else
  13. echo NO ARGS.
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement