From e0801e6bd6cc1241afafea33ba8ef701fec2e5c5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 17:45:37 +0200 Subject: Adding upstream version 5.5.17. Signed-off-by: Daniel Baumann --- make_nic_handles.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 make_nic_handles.pl (limited to 'make_nic_handles.pl') diff --git a/make_nic_handles.pl b/make_nic_handles.pl new file mode 100755 index 0000000..6b031c2 --- /dev/null +++ b/make_nic_handles.pl @@ -0,0 +1,17 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +while (<>) { + chomp; + s/#.*$//; + s/^\s+//; s/\s+$//; + next if /^$/; + + die "format error: $_" if not + (my ($a, $b) = /^(-\w+)\s+([\w\d\.:-]+)$/); + + print qq| "$a",\t"$b",\n|; +} + -- cgit v1.2.3