Getting into the previous directory using date commands
by Pavanchowdary from LinuxQuestions.org on (#5MH5C)
Hi,
This is Pavan,
Every month we do a build for that we create a folder like 202107 for current month., then copy some files from previous month build 202106. Currently we're doing it manually.
Now we are automating the process. So for the current month build I'll create a folder with the command "$"(date +%Y%m)"". So how can i get to previous build directory. Can anyone tell exact command to use.
Thanks,
Pavan Kumar
This is Pavan,
Every month we do a build for that we create a folder like 202107 for current month., then copy some files from previous month build 202106. Currently we're doing it manually.
Now we are automating the process. So for the current month build I'll create a folder with the command "$"(date +%Y%m)"". So how can i get to previous build directory. Can anyone tell exact command to use.
Thanks,
Pavan Kumar