Satyrn 0 Newbie Poster

I wrote this small script to convert all sh files in a directory and all sub-directories to resolve a compilation error I was getting with cygwin...

SETLOCAL
@echo off
:: Locate all sh files in the target directory and then
:: Convert CRLF to Unix Style LF
echo Converting Line Feed Carriage Returns to Unix Style Line Feeds...
echo Please Wait...
For /F "tokens=2 delims=:" %%A in ('Find %~dp0 -name "*.sh"') Do dos2unix %%A
echo.
echo Completed!
echo.
pause