階乗の桁数を出力するシェルコマンド2019-12-27shell2のX乗の桁数を出力するコマンドです。# 1. arithmetic expressionsで計算 # 2. wcで結果の桁数をカウント $ echo -n $((2 ** 32)) | wc -c