I want to set the variable date-today to the current date, and date_dir to yesterday's date, both in the format yyyy-mm-dd.
I am doing this:
#!/bin/bash
d=`date +%y%m%d%H%M%S`
echo $d
I want to set the variable date-today to the current date, and date_dir to yesterday's date, both in the format yyyy-mm-dd.
I am doing this:
#!/bin/bash
d=`date +%y%m%d%H%M%S`
echo $d