How do I create a file and run a Bash script on the Windows XP command line?
I only know commands in Linux. :)
Windows doesn't use the Bash shell, so therefore it has no Bash scripting. You could use Cygwin to run a virtual Linux environment within Windows.
What exactly are you trying to accomplish?
Two ways to go.
If you want a quick light wieght solution install "Unix Shell Utilities" which features a bourne shell inplementation and most of the basic unix command line tools (sed , grep awk etc). This will work only if you have a simple script and use the command line tools in a very basic standard way.
Or as the other posters suggest install cygwin (this is a pretty major install!) which will give you a complete *nix environment on your PC, or "mingw" which is a stripped down cygwyn with just enough functionality to run the gcc compiler family but might be enough for your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With