SyntaxFix
Write A Post
Hire A Developer
Questions
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