fib.sh (126B)
1 #!/bin/sh 2 3 bc -l <<< "(((sqrt(5) + 1) / 2) ^ $1 - (-((sqrt(5) + 1) / 2)) ^ -$1) / sqrt(5)" | awk '{printf("%dn", $1 + 0.5)}'