reorg bash

This commit is contained in:
bth 2024-01-13 21:54:38 -08:00
commit e21f2470ef
26 changed files with 5 additions and 19 deletions

25
bash/um Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
# export so that we can use it in subscripts.
export UMBASEPATH=`realpath $0 | xargs dirname`
# catch first arguments with $1
case "$1" in
next)
$UMBASEPATH/next.sh $2
;;
last)
$UMBASEPATH/last.sh
;;
cat)
# all args but first
$UMBASEPATH/cat.sh "${@:2}"
;;
rename)
$UMBASEPATH/rename.sh "${@:2}"
;;
*)
# else
echo "usage: um (next|last|cat|rename)"
;;
esac