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

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

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest