summaryrefslogtreecommitdiff
path: root/test/colonwarn.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/colonwarn.awk')
-rw-r--r--test/colonwarn.awk4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/colonwarn.awk b/test/colonwarn.awk
new file mode 100644
index 00000000..0b0650e0
--- /dev/null
+++ b/test/colonwarn.awk
@@ -0,0 +1,4 @@
+BEGIN { pattern = ARGV[1] + 0; delete ARGV }
+pattern == 1 { sub(/[][:space:]]/,""); print }
+pattern == 2 { sub(/[\][:space:]]/,""); print }
+pattern == 3 { sub(/[^][:space:]]/,""); print }