I m trying to get yesterday date, it's not working in hp ux server.
Prev_date=$(date +"y%m%d" -d "1 day ago")
For this I m still getting current date only. 20210811
Could you please help on the same.
I m trying to get yesterday date, it's not working in hp ux server.
Prev_date=$(date +"y%m%d" -d "1 day ago")
For this I m still getting current date only. 20210811
Could you please help on the same.
Copyright © 2021 Jogjafile Inc.
You missed a percentage in front of the 'y': this is working fine for me: