Windows 8 and 8.1 Forums

Find two or more strings in an output

  1. #11

    crawfish, works like a charm. I tried | with grep and it didn't work. Does work correctly with egrep though.

    So, one solution is to download and install UnxTools from the link I provided earlier then use dir piped to egrtep as crawfish showed.

      My System SpecsSystem Spec

  2. #12

    Posts : 2,130
    Windows 8.0 x64

    It seems like Find would be ideal. Run Linux Find and for all files matching the pattern run command
    ls -l

    Some of the Linux ports may also let you run "Dos" commands in the shell. Maybe escaped somehow, if the actual Dir result is what is desired. Some have stand-alone exe Dos/Windows versions of Linux commands and others use a Bash shell for more sophisticated pattern matching; doing sed stream edits with patterns etc..

    Depends how much the OP wants to do.

    Edit: It may seem more convenient to avoid the bash shell, but it runs in a console window and is no big deal. The big advantage is you don't get tangled up with Windows directory separator backslashes messing up the patterns. You can get many cool sed and nawk "one liners" and run them without editing them. That pattern matching stuff as soon as you start to edit it then the patterns are untested. With bash you can just copy and paste them in.
      My System SpecsSystem Spec

Page 2 of 2 FirstFirst 12
Find two or more strings in an output
Related Threads
My KONICA MINOLTA magicolor 1690mf network printer can't print . While i printing the output file is .prn . How can i reslove ?
No audio input and output in Sound & Audio
Well, things went on until noon yesterday, but suddenly My PC takes no audio input or gives any output. I have tried reinstalling driver, checking mute button, checking Cables etc, none of the audio devices work on my PC which work in other devices. On opening realtek audio manager and playing...
HDMI output not working in Graphic Cards
Hey guys, I have an ASUS s550C running windows 8 and my HDMI to my 32" RCA flatscreen doesn't work anymore. The cable works fine with the xbox, correct tv modes, but now as soon as I plug in the HDMI to the Ultrabook the Ultrabooks screen goes black and the tv screen says unsupported. What gives?...
Okay so, my computer recently crashed and had to reformat it.. lost everything :( Everything was working just fine, until I had to reformat. Now, I have no sound at all coming from my headphones and it says that the AMD HDMI Output is not plugged in. I don't really know how to fix this.. ...
Solved Multiple BSOD Bug Check Strings in BSOD Crashes and Debugging
I have had at least 5 different bug check strings. This is the most recent one: A problem has been detected and Windows has been shut down to prevent damage to your computer. The problem seems to be caused by the following file: ntoskrnl.exe KERNEL_DATA_INPAGE_ERROR
help with output of SFC /Scannow from CBS.log in Performance & Maintenance
Based on the snippet I've included below from running sfc/scannow there seems to be a problem with Task Scheduler.lnk. The thing is TS is working fine and the hashes of the file are the same in the folders indicated. While not earth shattering I wonder if anyone can shed some light into what...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook