I occasionally run a bash command line like this:
n=0; while [[ $n -lt 10 ]]; do some_command; n=$((n+1)); done
To run some_command>
some_command>
For one, you can wrap it up in a function:
function manytimes { n=0 times=$1 shift while [[ $n -lt $times ]]; do $@ n=$((n+1)) done }
Call it like:
$ manytimes 3 echo "test" | tr 'e' 'E' tEst tEst tEst