I want to a declare a variable called val1 holding the date of the previous day in yyyymmdd format
Any help would be great
val1=$(date +%Y%m%d --date="yesterday")
should do the trick.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments