Created
May 25, 2012 21:24
-
-
Save djangofan/2790685 to your computer and use it in GitHub Desktop.
Batch script to run a Groovy script over each file found in recursive subdirectories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
:: https://gist.github.com/2789163 | |
del list.txt | |
del list.bak | |
dir /s /b arrest.xml > list.txt | |
::FOR /F "tokens=2,3* delims=^\" %%i in (list.txt) do ( | |
:: ECHO %%i %%j %%k | |
::) | |
FOR /F "tokens=* delims=" %%i in (list.txt) do ( | |
ECHO %%i | |
groovy.exe stripAttributes.groovy "%%i" | |
) | |
rename list.txt list.bak | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment