summaryrefslogtreecommitdiff
path: root/bin/filter.cpp
diff options
context:
space:
mode:
authorjackbackrack2015-04-27 16:21:23 -0700
committerjackbackrack2015-04-27 16:21:23 -0700
commit8c8f6b99d2eb8bc783179c7c0113fc4a734c9585 (patch)
tree2a1288531c558310c5acaedd4957097a380b6ab0 /bin/filter.cpp
parent136352557ba0c6b9c97621e9dfefb4009faef7cc (diff)
build scripts
Diffstat (limited to 'bin/filter.cpp')
-rw-r--r--bin/filter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/filter.cpp b/bin/filter.cpp
new file mode 100644
index 00000000..ce67b8e3
--- /dev/null
+++ b/bin/filter.cpp
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main (int argc, char* argv[]) {
+ int c;
+ for (;;) {
+ c = getchar();
+ if (c == EOF) break;
+ char nc = (c == '$' || c == '#') ? '_' : c;
+ putchar(nc);
+ }
+}