diff --git a/bash/next/next.sh b/bash/next/next.sh index a5885d0..cf6dfb5 100755 --- a/bash/next/next.sh +++ b/bash/next/next.sh @@ -64,8 +64,6 @@ # may in certain situations conflict with the alias. The link should be "next.sh" -> ~/config/.. # 4. NOTE: I use 'e' rather than 'emacs', to use my clever emacs/emacsclient function. -e ` - ls | egrep '^[[:digit:]].*\.md|txt' | tail -n 1 | awk ' BEGIN { @@ -110,4 +108,3 @@ finalstr = sprintf("%s.%s", finalstr, $NF) END { print finalstr }' -` diff --git a/um b/um new file mode 100755 index 0000000..85a673b --- /dev/null +++ b/um @@ -0,0 +1,12 @@ +#!/bin/bash + +# catch first arguments with $1 +case "$1" in + next) + ~/dev/uldb/bash/next/next.sh $2 + ;; + *) + # else + echo "usage: um (next|last|cat|rename)" + ;; +esac