Print number of factorial digits by shell command
Takahiro Kudo
Posted on December 27, 2019
Command to output the number of digits of factorial of 2.
# $(()): calc by arithmetic expressions
# wc: count the number of digits
$ echo -n $((2 ** 32)) | wc -c
💖 💪 🙅 🚩
Takahiro Kudo
Posted on December 27, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.