while read line do for Windows

hello
I know this is a unix/linux forum but I need to use some unix commands in Windows
can someone help me to "translate" this code for windows?
I've downloaded UnxUtils.zip from SourceForget.net, sed.exe is working well, but i don't know what to use for read.

while read myline
do
let "myline=$myline+1"
sed -n ${myline}p file1 >>file2
done < source

thanks

You need to install a shell such as bash. Do a web search for "windows XP bash" and you will find plenty of download sites and information.

Plan B: Cygwin :smiley: