mpoland
03-04-2005, 04:31 PM
I'm writing a script that will create a summary file giving the results of an automated radar data processing routine. I want the file to contain a list of which orbits were successfully processed, in addition to those that weren't. The easiest way to do this is to confirm whether or not the final processed data file exists in each orbit directory.
Confirming which orbits were processed successfully is easy - I just 'ls */*.dint' to get a list of which orbit directories contain the final prcoessed data (which has the .dint suffix) and redirect the output into the summary file.
But is there a way to list orbit directories that do not contain the .dint file? I don't want to have to tell the script which orbits were processed on a given run. I'd like to be able to use 'ls' - or some variation - to simply print a list of directories that do not contain the .dint file. Does anyone have any ideas?
Thanks,
Mike
Confirming which orbits were processed successfully is easy - I just 'ls */*.dint' to get a list of which orbit directories contain the final prcoessed data (which has the .dint suffix) and redirect the output into the summary file.
But is there a way to list orbit directories that do not contain the .dint file? I don't want to have to tell the script which orbits were processed on a given run. I'd like to be able to use 'ls' - or some variation - to simply print a list of directories that do not contain the .dint file. Does anyone have any ideas?
Thanks,
Mike