Celeb Glow
updates | March 29, 2026

Logarithmic shell expansion?

I know there is ** for exponentiation in bash. Is there a simple shell expansion for logarithms?

1 Answer

No. You'll have to call out to an external program.

$ echo 'l(10)' | bc -l
2.30258509299404568401
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy