We are copying all the files into ARCHIVE directory after we process them. We are doing this process from last 2 years, now we have a lot of files in ARCHIVE directory.
Now I need to find when the first file is copied into this directory?
If I Issue,
ls -l /ARCHIVE/*.* | tail -1
it is showing the file which is created first in archive directory but it is not showing the date in proper format(It is showing as Nov 26, there is no year).
Is there any way to got the date of the first created file in directory in YYYYMMDD format?