1.

Solve : Maybe I need helpwith the find utility.?

Answer»

This is about the DOS find UTILITY.

Maybe this COULD be a DOS script. I am not sure. Here is what I want.
I want to look in in all the TXT files I ever made to SEE what email address I have used at any time.

I have found already that I can not use the @ in search. I don't know why. Anyway, here is how I thin it might be done.

Let me say that I use a site called "FarDog.us" as a mail service. some my email address might be "[emailprotected]", but I can not use the @ symbol. So I search on "fardog.us" and select ignore case. In Windows that gives my lots of files.So I copy them all to a USB stick.

{Mot my real e-mail. Just an example herein.}

So far, so good. Now I have a lot of TXT files on my K: drive, my USB thing.

Here is my question. How do I use he find utility to show me just show the fines that have the name of the website?
Quote from: Geek-9pm on June 01, 2018, 02:07:11 PM

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.

I have found already that I can not use the @ in search. I don't know why. Anyway, here is how I thin it might be done.

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]


Discussion

No Comment Found