I have a script that will get the last 5 days from the data input by the user.
Example:
Choose the month:
1 - Jan
2 - Feb
...
12- Dec // I used if else here
Insert day:
30
My expected output would be this:
Jun 30
Jun 29
Jun 28
Jun 27
Jun 26
Is this possible? I already check date
command but I can only replicate getting the date today then use -d
command. I can't input the date I want to check.
CASE
selector instead of using anIF
loop