#!/bin/sh # useage: lastarg "$@" shift $(($# - 1)) echo "$1"