On Thu, 2017-11-16 at 04:48 -0800, Russell Senior wrote: > Nice, that's a notch better than I came up with. But, sadly, it > still > munges the timestamps with leading zeros in minutes and seconds.
Oops, didn't notice the timestamp. How about: cat testline | sed -e 's/ \(..\):\(..\):\(..\) /x\1x\2x\3x/' -e 's/:0/:/g' -e 's/:0/:/g' -e 's/:0/:/g' -e 's/:0/:/g' -e 's/:::*/::/g' -e 's/x\(..\)x\(..\)x\(..\)x/ \1:\2:\3 /' > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
