In shell scripting how to find factorial of a number?
seq -s* `dd`|bc
I believe this is the shortest way of accomplishing the task.