13

Maximum number from input by user

view full story
linux-howto

http://www.unix.com – echo "Please enter four numbers: \c" read max for i in 1 2 3 4 do read number [ $number -gt $max ] && max=$number done echo "The maximum is: $max" When I run it, for example, I type 1 2 3 4 and it does nothing... (HowTos)