From c4023d71bca58c8118c32da2887a36232f21b26c Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Sat, 27 Jul 2019 11:58:51 +0200 Subject: [PATCH] lzc: add comment on possible use case --- lzc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lzc b/lzc index df60457..c8748b2 100755 --- a/lzc +++ b/lzc @@ -24,6 +24,9 @@ # input stream, e.g., 0ab.02 -> ab.2 (what looks like a decimal point is # treated as something different from a number). This allows to use lzc # on IPv4 and IPv6 addresses embedded in text. +# +# lzc can be used to remove leading zeros from MAC addresses, e.g., to +# generate the MAC address form to grep for in some logs from EXOS. # Each segment of zeros to remove must be anchored between two non xdigits. # This means that one s///g invocation skips every second group of xdigits.