How to get yesterday and day before yesterday in linux?

后端 未结 0 840
轻奢々
轻奢々 2021-02-11 21:44

I want to get sysdate -1 and sysdate -2 in variable and echo it. I am using below query which gives todays date as output.

#! /bin/bash
tm=$(date +%Y%d%m)
echo $         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题