#!/bin/bash
# Waits for user key press.
Pause()
{
OLDCONFIG='stty -g'
stty -icanon -echo min 1 time 0
dd count=1 2>/dev/null
stty $OLDCONFIG
}
echo "press a key to continue..."
Pause
echo "wait 10s"
sleep 10
# for loop 1~10000, i++
for i in 'seq 1 10000';
do
echo "Run $i times"
done
沒有留言:
張貼留言