I am trying to extract the year yyyy of a file created on a Unix system. I am taking the files in a directory and according to the year of the file place them in a folder named for the year of the file. IF I do a system ls -l it give me a filed for year unless it is a file that is less than a year old then it just gives me the time, month and day, it could be 2006 or 2007. Got to be an easy way to get just the year of the file.
Thank You