I have logs that have the current DOW at the end. I used `date +%a`
for example TEST.log.Tue
Is there a simple way to use the date command to return the prior DOW? Example: If it is Wed, I would like to work on Tue log.
I know I can use a case statement, but that there has to be an one line way.....
Thanks....
for example TEST.log.Tue
Is there a simple way to use the date command to return the prior DOW? Example: If it is Wed, I would like to work on Tue log.
I know I can use a case statement, but that there has to be an one line way.....
Thanks....