trying out a bash dispatcher
This commit is contained in:
parent
b67ac3bd18
commit
e7a4a864cd
2 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
}'
|
||||
`
|
||||
|
|
|
|||
12
um
Executable file
12
um
Executable file
|
|
@ -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
|
||||
Loading…
Reference in a new issue