aboutsummaryrefslogtreecommitdiff
path: root/challenge-122/abigail/bash/ch-1.sh
diff options
context:
space:
mode:
authorE7-87-83 <fungcheokyin@gmail.com>2021-07-27 11:09:20 +0800
committerE7-87-83 <fungcheokyin@gmail.com>2021-07-27 11:09:20 +0800
commit2c7cef286eb7a72c36c28f8fa4c5a2a88b76e4af (patch)
treea2b64a6a110d201ceed00119701e94e5dc7c965f /challenge-122/abigail/bash/ch-1.sh
parentf4e18fcb93b12bfc825272d2800e63ad4e56b140 (diff)
parent4231c2f762b397e1cacd2cb7e3c2799254fcc1a4 (diff)
downloadperlweeklychallenge-club-2c7cef286eb7a72c36c28f8fa4c5a2a88b76e4af.tar.gz
perlweeklychallenge-club-2c7cef286eb7a72c36c28f8fa4c5a2a88b76e4af.tar.bz2
perlweeklychallenge-club-2c7cef286eb7a72c36c28f8fa4c5a2a88b76e4af.zip
Merge remote-tracking branch 'upstream/master'
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