$ vim ~/.bashrc
function repeat() {
number=$1
shift
echo $@
for n in $(seq $number); do
$@
done
}
$ source ~/.bashrc
$ repeat 5 <COMMAND>
转载于:https://www.cnblogs.com/qccz123456/p/11457521.html
$ vim ~/.bashrc
function repeat() {
number=$1
shift
echo $@
for n in $(seq $number); do
$@
done
}
$ source ~/.bashrc
$ repeat 5 <COMMAND>
转载于:https://www.cnblogs.com/qccz123456/p/11457521.html