Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ -n "$*" ]
- then
- max=$1
- for i in $*
- do
- if [ "$i" -gt "$max" ]
- then
- max=$i
- fi
- done
- echo max=$max
- else
- echo NO ARGS.
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement