Bash sleep in milliseconds

后端 未结 3 1616
别那么骄傲
别那么骄傲 2020-12-15 03:07

I need a timer which will work with milliseconds. I tried to use sleep 0.1 command in a script, but I see this error message:

syntax error: invali

3条回答
  •  隐瞒了意图╮
    2020-12-15 04:07

    Some options:

    read -p "Pause Time .5 seconds" -t 0.5
    

    or

    read -p "Continuing in 0.5 Seconds...." -t 0.5
    echo "Continuing ...."
    

提交回复
热议问题