summaryrefslogtreecommitdiff
path: root/lastarg
diff options
context:
space:
mode:
Diffstat (limited to 'lastarg')
-rwxr-xr-xlastarg5
1 files changed, 5 insertions, 0 deletions
diff --git a/lastarg b/lastarg
new file mode 100755
index 0000000..b52afcd
--- /dev/null
+++ b/lastarg
@@ -0,0 +1,5 @@
+#!/bin/sh
+# usage: lastarg "$@"
+
+shift $(($# - 1))
+echo "$1"