summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/lastarg
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-04 04:09:26 -0700
committerxyz <gky44px1999@gmail.com>2021-11-04 04:09:26 -0700
commitfe2405ddfc21603b156daa8ab052344f5f40fc73 (patch)
treebb68f0c1028e8158b3ee7e6f7b085a9e202ec814 /home/xyz/.local/bin/lastarg
parentd74011f09d917b7679110cbdc6d583fff19b8dfa (diff)
mvln, mv file then ln back
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"