summaryrefslogtreecommitdiff
path: root/bin/filter
diff options
context:
space:
mode:
Diffstat (limited to 'bin/filter')
-rwxr-xr-xbin/filter14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/filter b/bin/filter
new file mode 100755
index 00000000..0038ba47
--- /dev/null
+++ b/bin/filter
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+import fileinput
+import sys
+
+for line in fileinput.input():
+ for ch in line:
+ och = ch
+ if ch == '#':
+ och = '_'
+ elif ch == '$':
+ och = "::"
+ sys.stdout.write(och)
+
+