Bash script get yesterdays or one day ago's date or date-1

date -d '1 day ago' +"%Y-%m-%d"

3 comments:

Anonymous said...

if we want 2days ago or 17days ago.so what's the script.
Thanks & valuable blog.....

Pawan said...

Thanks for the script, Short and good.

Anshul Agarwal said...

clash of clans mod
gta 5 download

th7 war base
resident evil 7 torrent

th8 war base
mass effect andromeda download