summaryrefslogtreecommitdiffstats
path: root/tests/langbench/cat.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/langbench/cat.py')
-rw-r--r--tests/langbench/cat.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/langbench/cat.py b/tests/langbench/cat.py
new file mode 100644
index 0000000..3775fa3
--- /dev/null
+++ b/tests/langbench/cat.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+import os
+import sys
+
+def cat(file):
+ f = open(file)
+ for line in f:
+ print line,
+ f.close()
+
+def main():
+ for a in sys.argv:
+ cat(a)
+
+if __name__ == "__main__":
+ main()