Question : Unix Tools: sed Command Not Working in Windows XP

I'm running Win XP SP2

I'm using an old package of Unix tools for DOS.

I need to execute the sed substitute command on a large file and I'd like to find a package of Unix tools for Windows.

C:\>sed 's/x/y/g' file1 > file2

Returns Error: Unrecognized command: 's/x/y/g'

I've also tried:

C:\>sed -e 's/x/y/g' file1 > file2
C:\>cat file1 | sed -e 's/x/y/g' > file2
C:\>cat file1 | sed 's/x/y/g' > file2

Any suggestions to remedy this?

I remember trying CygWin and something about it I did not like.  What other Unix Utilities packages are available for Windows XP?

Answer : Unix Tools: sed Command Not Working in Windows XP

Here's suggestions from others looking for similar things: http://stackoverflow.com/questions/127318/is-there-any-sed-like-utility-for-cmd-exe
Random Solutions  
 
programming4us programming4us