aboutsummaryrefslogtreecommitdiff
path: root/challenge-122/abigail/bash/ch-1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-122/abigail/bash/ch-1.sh')
-rw-r--r--challenge-122/abigail/bash/ch-1.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/challenge-122/abigail/bash/ch-1.sh b/challenge-122/abigail/bash/ch-1.sh
new file mode 100644
index 0000000000..29d3a79f9d
--- /dev/null
+++ b/challenge-122/abigail/bash/ch-1.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#
+# See ../README.md
+#
+
+#
+# Run as: bash ch-1.sh < input-file
+#
+
+while read n; do echo $(((s += n) / ++ c)); done