aboutsummaryrefslogtreecommitdiff
path: root/bfd/awkscan-ip
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/awkscan-ip')
-rwxr-xr-xbfd/awkscan-ip8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/awkscan-ip b/bfd/awkscan-ip
new file mode 100755
index 0000000..01e3c05
--- /dev/null
+++ b/bfd/awkscan-ip
@@ -0,0 +1,8 @@
+# NOTE: BEGIN pattern gives errors if other than 1st line;
+# END ditto if other than last.
+BEGIN { print "/* ------------------------------START FROM " FILENAME "*/" }
+#
+# keep /*proto-internal blocks
+/^\/\*proto-internal\*/,/^\*\/|^\*-\*\//
+#
+END { print "/* --------------------------------END FROM " FILENAME "*/\n" }