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 $