aboutsummaryrefslogtreecommitdiff
path: root/challenge-002/abigail/lua/ch-1.lua
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-002/abigail/lua/ch-1.lua')
-rw-r--r--challenge-002/abigail/lua/ch-1.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/challenge-002/abigail/lua/ch-1.lua b/challenge-002/abigail/lua/ch-1.lua
new file mode 100644
index 0000000000..a60dee614f
--- /dev/null
+++ b/challenge-002/abigail/lua/ch-1.lua
@@ -0,0 +1,13 @@
+#!/opt/local/bin/lua
+
+--
+-- See ../README.md
+--
+
+--
+-- Run as: lua ch-1.lua < input-file
+--
+
+for line in io . lines () do
+ io . write (tonumber (line), "\n")
+end