1 2 3 4 | yest=$(date --date="yesterday") echo "$yest" yest=$(date --date="yesterday" +"%d/%m/%Y") echo "The backup was last verified on $yest" | cs |
반응형
'프로그래밍 > shellscript' 카테고리의 다른 글
ssh로 여러 대 서버에 shell command 실행하기. (0) | 2019.04.11 |
---|---|
배열 반복문 출력 (0) | 2016.12.03 |