Using Linux Centos 6
I have 16 years of data sorted in directories by year and then day (1997/001, 1997/002...). Each 'day' directory has 24 files, 1 for each hour, with hour name in each file (i.e.
I can't change the filename or the algorithm used to name the files. I have a script that reads the meta data in the file and archives it into the correct year/day directory. However, the first file of each day actually begins at 23:59:59. So that first file of each day actually gets archived on the previous day.
1997.001.00.bin actually gets archived in
I need to generate symlinks so that the a link for
1997.001.00.bin resides in
1997/001 and points to the actual location in
1996/365. If it were only a few files, I'd just run the command by hand, but I need to do this for 5000+ files. Any help on generating some commands for a script would be greatly appreciated.