UNIX script to run on WINDOWS

I have a few questions,

Is there a way to make a UNIX script work under Windows OS without any addon like CYGWIN?

Is there any way to convert the UNIX script to a Windows batch script so that I can run it in windows cmd?

I searched for this but I get a link to the UNIX command win2unix or unix2win, the ones that convert the file from / to Windows / UNIX format.

Thanks for the help.

+3


source to share


1 answer


I know you don't want to "add", but if that might help: you can download MobaXterm (or the portable version), which will come with many things, including many unix utilities (shell, etc.) and many which you can download from their website.

The portable version is the most convenient (and you can transfer it to your USB key, for example)



It is quite slower than cygwin / etc (most commands are emulated through some master binary, and many built-in shells invoke calls to this binary instead), but very portable and neat.

Other solutions (converting, etc.) will probably also entail binary of some kind, so I recommend the above as it is very portable and gives you a kind of "mini-UNIX inside windows"

+1


source







All Articles