iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes
[distro-setup]
/
brc2
diff --git
a/brc2
b/brc2
index ddfe816e236aff742d1b75e95f6c8c10d400f0ad..6b977839c870f2a4d37c0ae8bc3a3cc31aebe250 100644
(file)
--- a/
brc2
+++ b/
brc2
@@
-381,6
+381,22
@@
bigclock() {
nnn() { /a/opt/nnn -H "$@"; }
nnn() { /a/opt/nnn -H "$@"; }
+locat() { # log-once cat
+ local files
+ ngset
+ files=(/var/local/cron-errors/* /home/iank/cron-errors/* /sysd-mail-once-state/*)
+ case ${#files[@]} in
+ 0) : ;;
+ 1)
+ echo ${files[0]}
+ head ${files[0]}
+ ;;
+ *)
+ head ${files[@]}
+ ;;
+ esac
+ ngreset
+}
# duplicated somewhat below.
jrun() { # journal run. run args, log to journal, tail and grep the journal.
# duplicated somewhat below.
jrun() { # journal run. run args, log to journal, tail and grep the journal.