본문 바로가기
프로그래밍/shellscript

쉘스크립트로 어제 날짜 가져오기 dateformat

by 메이슨김 2016. 7. 26.
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