How to get yesterday and day before yesterday in linux?

后端 未结 0 1246
生来不讨喜
生来不讨喜 2021-02-11 21:11

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 $         


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