Is there a command prompt (Windows 7) grep equivalent? That is, I want to filter out the results of a command:
Bash use:
ls | grep root
What would it be from a MS-DOS command prompt?
|
Is there a command prompt (Windows 7) grep equivalent? That is, I want to filter out the results of a command: Bash use:
What would it be from a MS-DOS command prompt?
| |||||||
feedback
|
|
Findstr sounds like what you want. I use it all the time as an approximate grep-equivalent on the windows platform. Another example with pipes:
| ||||
feedback
|
|
If you would rather use | |||||||||||||
feedback
|
|
There are several possibilities:
| |||
|
feedback
|
|
If you mean MS-DOS then there's only If you mean NT(XP/2K/7/Vista)'s Command Prompt you can use The basic differences are that findstr has some regex support. Grep supports regex best.
If you download GnuWin32 I suggest the coreutils package for a bunch of basic useful utilities you'd be familiar with, but grep is a separate thing, its own package. | ||||
|
feedback
|