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 ...
- Download UnxUtils
- Extract into folder (c:\tools\unxutils)
- update system path to contain scripts [scripts are located in the wbin-folder] ( \unxutils \usr\local\wbin
- Launch cmd
- 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