Skip to content

Commit

Permalink
lzc: add comment on possible use case
Browse files Browse the repository at this point in the history
  • Loading branch information
auerswal committed Jul 27, 2019
1 parent 8c9c475 commit c4023d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lzc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c4023d7

Please sign in to comment.