echo "Argument count = $#" if [ $# -gt 0 ] then eval last_arg=\$$# else last_arg='<none>' fi echo "Last argument = $last_arg"