reorg bash
This commit is contained in:
parent
a61ce23294
commit
e21f2470ef
26 changed files with 5 additions and 19 deletions
|
|
@ -65,7 +65,7 @@
|
|||
# 4. NOTE: I use 'e' rather than 'emacs', to use my clever emacs/emacsclient function.
|
||||
|
||||
|
||||
NEXTFILE=`$UMBASEPATH/bash/last/last.sh | awk '
|
||||
NEXTFILE=`$UMBASEPATH/last.sh | awk '
|
||||
|
||||
BEGIN {
|
||||
# set field separator, blank by default
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# why can't i use bash if statement, before appending an empty arg string?
|
||||
|
||||
last=`ls | egrep '^\d.*\.md|txt' | tail -n 1`
|
||||
|
||||
if ($* != "")
|
||||
last=last + $*;
|
||||
|
||||
awk '
|
||||
{
|
||||
print $0
|
||||
}
|
||||
END {print NR}' last
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
# emacs --debug-init blah
|
||||
emacs `ls | grep '^\d' | tail -n 1`
|
||||
|
|
@ -6,17 +6,17 @@ export UMBASEPATH=`realpath $0 | xargs dirname`
|
|||
# catch first arguments with $1
|
||||
case "$1" in
|
||||
next)
|
||||
$UMBASEPATH/bash/next/next.sh $2
|
||||
$UMBASEPATH/next.sh $2
|
||||
;;
|
||||
last)
|
||||
$UMBASEPATH/bash/last/last.sh
|
||||
$UMBASEPATH/last.sh
|
||||
;;
|
||||
cat)
|
||||
# all args but first
|
||||
$UMBASEPATH/bash/mdcat/mdcat.sh "${@:2}"
|
||||
$UMBASEPATH/cat.sh "${@:2}"
|
||||
;;
|
||||
rename)
|
||||
$UMBASEPATH/bash/rename/rename.sh "${@:2}"
|
||||
$UMBASEPATH/rename.sh "${@:2}"
|
||||
;;
|
||||
*)
|
||||
# else
|
||||
Loading…
Reference in a new issue