#!/bin/bash # 使用for循环输出1到5的数字 for i in {1..5} do echo $i # 等待1秒 sleep 1 done exit 0