2012-07-19

Unix Commands in Windows

http://www.lucidtips.com/2008/06/07/unix-utils-on-windows/
http://www.weihenstephan.de/~syring/win32/UnxUtils.zip

Following up on my previous blog post about using windows commands to do stuff like "find content in file":  type apache_error.log | findstr "time:". 

I found a way better alternative by utilizing something called "UnxUtils". UnxUtils makes it is possible to get the most important unix commands into a windows environment and accessible through command prompt. Such as grep ...
  1. Download UnxUtils
  2. Extract into folder (c:\tools\unxutils)
  3. update system path to contain scripts [scripts are located in the wbin-folder] ( \unxutils \usr\local\wbin
  4. Launch cmd
  5. run some unix command like cat/grep/more/less and see that it works
Now, you can run the powerful grep command with regular expressions as well as printing the end of file with less etc.

Inga kommentarer:

Skicka en kommentar