Hi,
I receive data files that have a three letter abreviation for the day of the week appended to the end of the file name (example DATA_Mon, DATA_Tue, etc). Each file represents all of the data collected for that day, and must be processed in chronological order. Sometimes I get several of the files at a time, but their time stamps are the same.
Presently, I use a
for fn in `ls -rt $DataDir/DATA*`
statement to loop through the files, but without accurate timestamps this falls short of my needs.
Can anyone suggest how to approach loading the data in the correct order when all you have to sort them by is the name of the file?
Thanks in advance,
Mark
I receive data files that have a three letter abreviation for the day of the week appended to the end of the file name (example DATA_Mon, DATA_Tue, etc). Each file represents all of the data collected for that day, and must be processed in chronological order. Sometimes I get several of the files at a time, but their time stamps are the same.
Presently, I use a
for fn in `ls -rt $DataDir/DATA*`
statement to loop through the files, but without accurate timestamps this falls short of my needs.
Can anyone suggest how to approach loading the data in the correct order when all you have to sort them by is the name of the file?
Thanks in advance,
Mark