苹果电脑(mac)如何编写shell脚本延时操作

2024-10-11 21:03:14

1、【延时原理】shell脚本中用sleep函数即可延时,其默认的单位为秒。如sleep 1即为延时一秒钟。

苹果电脑(mac)如何编写shell脚本延时操作

3、然后保存为,timewasting.sh

苹果电脑(mac)如何编写shell脚本延时操作

5、然后输入 ./timewasting.sh执行。

苹果电脑(mac)如何编写shell脚本延时操作
猜你喜欢