$ vim ~/.bashrc
function repeat() {
number=$1
shift
echo $@
for n in $(seq $number); do
$@
done
}
$ source ~/.bashrc
$ repeat 5 <COMMAND>
$ vim ~/.bashrc
function repeat() {
number=$1
shift
echo $@
for n in $(seq $number); do
$@
done
}
$ source ~/.bashrc
$ repeat 5 <COMMAND>