X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=9e368d471a21a93ec3d4786e2513c0f442f5be5f;hb=95a4248e98e118024f5065636288406e8e8c9a30;hp=ad1a0781c291eb0652cd1b3a04ff50d067b34598;hpb=6f1f8a104c9b38936ade2d27e835479523985133;p=distro-setup diff --git a/brc b/brc index ad1a078..9e368d4 100644 --- a/brc +++ b/brc @@ -198,8 +198,10 @@ if [[ -s /usr/share/wcd/wcd-include.sh ]]; then source /usr/share/wcd/wcd-include.sh fi -if [[ -s ~/.iank/ll-function ]]; then - # shellcheck source=.iank/ll-function +if [[ -s /a/bin/small-misc-bash/ll-function ]]; then + # shellcheck source=/a/bin/small-misc-bash/ll-function + source /a/bin/small-misc-bash/ll-function +elif [[ -s ~/.iank/ll-function ]]; then source ~/.iank/ll-function fi @@ -422,10 +424,25 @@ dus() { # du, sorted, default arg of e() { echo "$@"; } -# echo var. print var including escapes, etc +# echo args +ea() { + if (( ! $# )); then + echo no args + fi + for arg; do + printf "%qEOL\n" "${arg}" + printf "%s" "${arg}" |& hexdump -C + done +} +# echo vars. print var including escapes, etc ev() { - printf "%qEOL\n" "${!1}" - printf "%s" "${!1}" |& hexdump -C + if (( ! $# )); then + echo no args + fi + for arg; do + printf "%qEOL\n" "${!arg}" + printf "%s" "${!arg}" |& hexdump -C + done } @@ -441,6 +458,12 @@ etail() { eless() { less /var/log/exim4/mainlog } +eqcat() { + exiqgrep -i | while read i; do + exim -Mvh $i; hr; exim -Mvb $i; hr; + exigrep $i /var/log/exim4/mainlog; hr + done +} # shellcheck disable=SC2032 @@ -746,6 +769,7 @@ nopanic() { } p8() { ping 8.8.8.8; } +p6() { ping6 2001:4860:4860::8888; } pkx() { # package extract local pkg cached tmp f