~pbatch/weewiki

b924beab4350ee4583a8598486ef9deed6890b44 — paul 1 year, 1 month ago bb5642f
updates to readable utility

FossilOrigin-Name: 5809a0c7ac0dd1c6787c0d652df06cc332260f95b843c7c8fa97e1836c2db89d
1 files changed, 3 insertions(+), 3 deletions(-)

M util/readable
M util/readable => util/readable +3 -3
@@ 1,11 1,11 @@
ZET="weewiki zet"
while read -r line
do
    NAME=$($ZET entry $line |\
    NAME=$($ZET entry "$line" |\
        cut -f 3 |\
        grep -v -E "^#|^\$" |\
        grep -v -E "^[#\$]" |\
        awk '{print substr($0, 2)}'
        )
    ERGO=$($ZET ergo $line | awk '{print substr($0, 1, 8)}')
    printf "[g%s]\t %s\n" $ERGO $NAME
    printf "[g%s]\t %s\n" $ERGO "$NAME"
done