Question on reading dates in folders/files

Hi All,

I have some folder that are named "FOLDERYYYYMM". I'm trying to piece together a .sh script that will look for the folder with the date. How can I get shell to see the date?

If you know the date, can't you just use find to get it?

Hi!

Related with date command.
How can I create a file with yesterday's date?
I'm using the format: date "+%Y%m%d". I subtract 1 day, but it's useless when the month changes.

Thanks!!!

date --date="yesterday" +%Y%m%d

Need more methods ... Just do a search on forum .. You will find lot ...