| 1. |
Solve : Maybe I need helpwith the find utility.? |
|
Answer» This is about the DOS find UTILITY. I have found already that I can not use the @ in search. I don't know why. Are you sure? 1. test.txt Code: [Select]a.line.of.text [emailprotected] some.more.txt [emailprotected] [emailprotected] 2. tryme.bat Code: [Select]@echo off for %%a in (*.txt) do ( type "%%a" | find "@fardog.us" ) 3. Output of tryme.bat Code: [Select][emailprotected] [emailprotected]Quote from: Geek-9pm on June 01, 2018, 02:07:11 PM This is about the DOS find utility. Code: [Select]C:\Batch\Test\>find "@" *.txt ---------- TEST.TXT [emailprotected] [emailprotected] [emailprotected] C:\Batch\Test>find "@fardog.us" *.txt ---------- TEST.TXT [emailprotected] [emailprotected] use a double FIND to get rid of the file names: Code: [Select]C:\Batch\Test>find "@fardog.us" *.txt | find "@fardog.us" [emailprotected] [emailprotected] |
|