Advertisement
Guest User

TEST

a guest
May 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. min=$1
  4. max=$1
  5.  
  6. shift
  7.  
  8. while [ "$#" -ne "0" ]
  9. do
  10.     min=$(min.sh "$min" "$1")
  11.     max=$(max.sh "$max" "$1")
  12.     shift
  13. done
  14.  
  15. echo "Max: $max"
  16. echo "Min: $min"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement