summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/lastarg
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/lastarg')
-rwxr-xr-xhome/xyz/.local/bin/lastarg5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/lastarg b/home/xyz/.local/bin/lastarg
new file mode 100755
index 00000000..58f1f14e
--- /dev/null
+++ b/home/xyz/.local/bin/lastarg
@@ -0,0 +1,5 @@
+#!/bin/sh
+# useage: lastarg "$@"
+
+shift $(($# - 1))
+echo "$1"