4 ms·
If you consider the use of dc/bc as in the other solutions to be cheating, you can use unary-encoded integers... alias sum='xargs -I{} sh -c "head -c {} < /
by mjn 13y ago
If you consider the use of dc/bc as in the other solutions to be cheating, you can use unary-encoded integers...
alias sum='xargs -I{} sh -c "head -c {} < /dev/zero" | wc -c'