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