Skip to content

Instantly share code, notes, and snippets.

@ougx
Created January 28, 2019 14:36
Show Gist options
  • Save ougx/51253d1bbc035425f549423556f3e36a to your computer and use it in GitHub Desktop.
Save ougx/51253d1bbc035425f549423556f3e36a to your computer and use it in GitHub Desktop.
:: Check the cells that are skipped and export them to a file for reconstruct the condor sub file
@echo off
cd result-pump
echo failed cells > ..\3_failed.txt
echo finished cells > ..\3_finished.txt
for /f "tokens=1, 2" %%i in (..\3_cell_list.txt) do call :process %%i %%j
goto finish
:process
:: echo %1 %2
IF EXIST R%1C%2.2.csv (echo %1 %2 >> ..\3_finished.txt) ELSE (echo %1 %2 >> ..\3_failed.txt)
:finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment