From 10c099212ff4e36a26e88f2f1a2ae18ba0093306 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Tue, 12 Jan 2021 00:36:48 +0100 Subject: [PATCH] removed awk from shell version --- shell/fibonacci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/fibonacci.sh b/shell/fibonacci.sh index 88532d3..3626ea6 100755 --- a/shell/fibonacci.sh +++ b/shell/fibonacci.sh @@ -7,7 +7,7 @@ fibonacci() { return 0 fi - (tee /dev/stderr | tail -n 2 | awk '{s += $1} END {print s}') 2>&1 | fibonacci $((i - 1)) + (tee /dev/stderr | tail -n 2 | paste -s -d "+" | bc) 2>&1 | fibonacci $((i - 1)) } fibonacci 5 <