2004-03-08 00:18:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2018-02-23 09:53:12 +01:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-29 11:39:47 +10:00
|
|
|
#
|
2021-06-03 08:37:05 +02:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
#
|
2016-06-27 14:56:38 +10:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 16:20:40 -07:00
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
#
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
2004-03-08 00:18:34 +00:00
|
|
|
|
2004-03-07 22:40:59 +00:00
|
|
|
expand ${1} |
|
|
|
|
sed \
|
|
|
|
-e 's/^\([1-9][0-9][0-9][0-9][0-9][0-9]\.\) */\1 /' \
|
|
|
|
-e 's/^\([1-9][0-9][0-9][0-9][0-9]\.\) */\1 /' \
|
|
|
|
-e 's/^\([1-9][0-9][0-9][0-9]\.\) */\1 /' \
|
|
|
|
-e 's/^\( [1-9][0-9][0-9]\.\) */\1 /' \
|
|
|
|
-e 's/^\( [1-9][0-9]\.\) */\1 /' \
|
|
|
|
-e 's/^\( [1-9]\.\) */\1 /' \
|
|
|
|
-e 's/\( \[.\]\) */\1 /' \
|
|
|
|
-e 's/\( \[..\]\) */\1 /' \
|
|
|
|
-e 's/\( \[...\]\) */\1 /' \
|
|
|
|
-e 's/\( \[....\]\) */\1 /' \
|
|
|
|
-e 's/\( \[.....\]\) */\1 /' \
|
|
|
|
-e 's/\( \[......\]\) */\1 /' \
|
|
|
|
-e 's/\( \[.......\]\) */\1 /' \
|
|
|
|
-e 's/\( \[........\]\) */\1 /' \
|
|
|
|
-e 's/\( \[.........\]\) */\1 /' \
|
|
|
|
-e 's/\( \[..........\]\) */\1 /' \
|
|
|
|
-e 's/\( \[...........\]\) */\1 /' \
|
|
|
|
-e 's/\( \[............\]\) */\1 /' \
|
|
|
|
-e 's/[ ]*$//' |
|
|
|
|
unexpand
|