20
Under Linux, when I want to filter by a term when a command will generate giant list, I use the command grep
.
For example:
ls | grep "termo"
However, in Windows there is no command grep
.
What would be the equivalent of grep
on Windows, for both Power Shell and CMD?
Powershell: https://superuser.com/a/701011; cmd: https://superuser.com/a/300821
– user28595
You can use findstr. It would look like this: "dir | findstr String"
– Bruno Rigolon
I have a better idea, gets only Linux!!! :D
– Guilherme Lautert
Install the bash!
– Jefferson Quesado