Getting the last argument passed to a shell script September 28, 2022 by Tarik This is Bash-only: echo "${@: -1}"