#!/bin/bash [ "$#" -ne 3 ] && echo "usage: $0 a b c" && exit 1 a=$1 b=$2 c=$3 max=$a (( b > max )) && max=$b (( c > max )) && max=$c echo "$max"