iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mostly t11 fixes
[distro-setup]
/
brc
diff --git
a/brc
b/brc
index fdd8e2cf73b6b564f94e185feb7e2192ea74eef7..7b0167468819caf211a64b56615af3fc36ba608c 100644
(file)
--- a/
brc
+++ b/
brc
@@
-779,6
+779,19
@@
despace() {
done
}
done
}
+# get ipv4 ip from HOST. or if it is already a number, return that
+hostip() {
+ local host="$1"
+ case $host in
+ [0-9:])
+ echo "$host"
+ ;;
+ *)
+ getent ahostsv4 "$host" | awk '{ print $1 }' | head -n1
+ ;;
+ esac
+}
+
dig() {
command dig +nostats +nocmd "$@"
}
dig() {
command dig +nostats +nocmd "$@"
}
@@
-827,7
+840,7
@@
dus() { # du, sorted, default arg of
ccomp du dus
ccomp du dus
-e() { printf "%s\n" "$
@
"; }
+e() { printf "%s\n" "$
*
"; }
# echo args
ea() {
# echo args
ea() {
@@
-927,14
+940,18
@@
eless() {
}
ccomp less eless
eqcat() {
}
ccomp less eless
eqcat() {
- exiqgrep -i -o 60 | while read -r i; do
+ exiqgrep -i
r.\*
-o 60 | while read -r i; do
hlm exim -Mvc $i
echo
hlm exigrep $i /var/log/exim4/mainlog | cat ||:
done
}
eqrmf() {
hlm exim -Mvc $i
echo
hlm exigrep $i /var/log/exim4/mainlog | cat ||:
done
}
eqrmf() {
- exiqgrep -i | xargs exim -Mrm
+ # other ways to get the list of message ids:
+ # exim -bp | awk 'NF == 4 {print $3}'
+ # # this is slower 160ms, vs 60.
+ # exipick -i
+ exiqgrep -ir.\* | xargs exim -Mrm
}
econfdevnew() {
}
econfdevnew() {