New filter
[idzebra-moved-to-github.git] / tab / usmarc.flt
diff --git a/tab/usmarc.flt b/tab/usmarc.flt
new file mode 100644 (file)
index 0000000..74e3f9b
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# Rather dummy input-filter for MARC
+#
+
+BEGIN                  { begin record usmarc }
+/^.../ / / /../ / /     { begin element $0 }
+/\$/ /./ BODY /[$\n]/   { data -element $1 $2; unread 3 }
+/\n/                    { end element }