1
this might seem like stupid Q but I have PS problem: like the title says I try something like:
$all = gci D:\work\
$all | Select-String ".*_.*=-1"
(im looking for config option that has value -1 and _ in name) Problem is that PS freezes, aka it doesnt finish in reasonable time, ctrl +c doesnt work. Ofc you could say that data is just to much for it to process, but problem is that grep takes like 1-2 secs on same folder and same regex.
Grep command is (originally it didnt have -r but I added it after some comments, grep is still fast but it takes 20-30 sec)
grep ".*_.*=-1" -r D:\work\*
EDIT:
$all | ForEach-Object {echo $_.Name; $_|Select-String ".*_.*=-1" }
shows slowly filenames... I guess the problem is that Regex speed in PS is pathetic...
Could you please show the full grep command as well. – bbaja42 – 2012-10-19T12:57:40.360
i could and i did :) – NoSenseEtAl – 2012-10-19T13:07:05.573