循环执行shell命令
Linux命令行,循环执行shell命令 死循环 命令格式 可以将 command 替换为任意命令。下面以echo “hello”; sleep 1;为 command 展示最终效 ...
Linux命令行,循环执行shell命令 死循环 命令格式 可以将 command 替换为任意命令。下面以echo “hello”; sleep 1;为 command 展示最终效 ...
需求:从当前时间前6个月开始执行某个语句,直到执行到当前日期的前一天。 shell脚本如下: #!/bin/bash yesterday=`date -d -1day +%Y%m%d` ...