



























usage:
1.
./bell.sh
2.
./bell.sh 6
will ring 6 times.
#!/bin/bash
repeat=1
if [[ $# -gt 0 ]] ; then
repeat=$1
fi
function bell_()
{
for i in $(seq 1 $repeat)
do
wait
tput bel
sleep 1 &
done
}
bell_ &
~
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。