Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

My mother is a fish. -- William Faulkner


computers / alt.comp.os.windows-10 / Re: Lower case and diff two text files contents of email addresses

SubjectAuthor
* Lower case and diff two text files contents of email addressesMaxmillian
+* Re: Lower case and diff two text files contents of email addressesGraham J
|`- Re: Lower case and diff two text files contents of email addressesZaidy036
+* Re: Lower case and diff two text files contents of email addressesPaul
|`- Re: Lower case and diff two text files contents of email addressesPaul
+- Re: Lower case and diff two text files contents of email addressesDAN
`* Re: Lower case and diff two text files contents of email addressesHerbert Kleebauer
 +* Re: Lower case and diff two text files contents of email addressesAndy Burnelli
 |+* Re: Lower case and diff two text files contents of email addressesHerbert Kleebauer
 ||`* Re: Lower case and diff two text files contents of email addressesAndy Burns
 || `* Re: Lower case and diff two text files contents of email addressesHerbert Kleebauer
 ||  `- Re: Lower case and diff two text files contents of email addressesAndy Burns
 |`- Re: Lower case and diff two text files contents of email addressesStan Brown
 `* Re: Lower case and diff two text files contents of email addressesHerbert Kleebauer
  +- Re: Lower case and diff two text files contents of email addressesZaidy036
  `- Re: Lower case and diff two text files contents of email addressesHerbert Kleebauer

1
Lower case and diff two text files contents of email addresses

<tvi5tu$32478$1@news.samoylyk.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69934&group=alt.comp.os.windows-10#69934

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!news.samoylyk.net!.POSTED.49.142.45.86!not-for-mail
From: max...@max.is.invalid (Maxmillian)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Lower case and diff two text files contents of email addresses
Date: Thu, 23 Mar 2023 18:31:27 -0000 (UTC)
Organization: Private News Server
Message-ID: <tvi5tu$32478$1@news.samoylyk.net>
Injection-Date: Thu, 23 Mar 2023 18:31:27 -0000 (UTC)
Injection-Info: news.samoylyk.net; posting-host="49.142.45.86";
logging-data="3215592"; mail-complaints-to="abuse@samoylyk.net"
 by: Maxmillian - Thu, 23 Mar 2023 18:31 UTC

I have two long lists of email addresses in Windows 10 as text files.

How can I lowercase everything and then get a diff of what email
addresses are in one text file but not in the other text file?

Re: Lower case and diff two text files contents of email addresses

<tvi778$18u8r$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69936&group=alt.comp.os.windows-10#69936

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: nob...@nowhere.co.uk (Graham J)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Thu, 23 Mar 2023 18:53:00 +0000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <tvi778$18u8r$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 23 Mar 2023 18:53:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bbcc04c8ce54ab29b3f77baf7505da57";
logging-data="1341723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18m7YGzNOPdGZVSSXfUMWNi"
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.15
Cancel-Lock: sha1:RlxxnTcxhK3lBvL4rc5kK6/ZNPQ=
X-Antivirus-Status: Clean
In-Reply-To: <tvi5tu$32478$1@news.samoylyk.net>
X-Antivirus: AVG (VPS 230323-2, 23/3/2023), Outbound message
 by: Graham J - Thu, 23 Mar 2023 18:53 UTC

Maxmillian wrote:
> I have two long lists of email addresses in Windows 10 as text files.
>
> How can I lowercase everything and then get a diff of what email
> addresses are in one text file but not in the other text file?
>

Are the email addersses separated in any way, with commas, spaces,
tabs, or semicolons?

If so, import each list into a speadsheet so that there is one email
address per line. Sort the lines. Compare the two spreadsheets.

Look up fc for file compare

fc /?

--
Graham J

Re: Lower case and diff two text files contents of email addresses

<tvi9e8$19a2h$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69939&group=alt.comp.os.windows-10#69939

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Thu, 23 Mar 2023 15:31:20 -0400
Organization: A noiseless patient Spider
Lines: 85
Message-ID: <tvi9e8$19a2h$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 23 Mar 2023 19:31:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4826cc35844678fa6c2c88fcc5c00f6a";
logging-data="1353809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R8GgveUI74FotNaIGIW4v808AN93v3As="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:tYfLN5UVthF4rFcLpJ9UWyc/7Mc=
Content-Language: en-US
In-Reply-To: <tvi5tu$32478$1@news.samoylyk.net>
 by: Paul - Thu, 23 Mar 2023 19:31 UTC

On 3/23/2023 2:31 PM, Maxmillian wrote:
> I have two long lists of email addresses in Windows 10 as text files.
>
> How can I lowercase everything and then get a diff of what email
> addresses are in one text file but not in the other text file?
>

**************************** diffemail.awk **************************

# Assumes file1.txt and file2.txt are in the current working directory
# # gawk.exe -f diffemail.awk file2.txt

BEGIN {
while ( (getline < "file1.txt") > 0 ) { # load one file into memory
# I am too lazy to pass this as param
$0 = tolower($0)
arr[$0]++ # The array index is the key, array content currently
# is a don't care condition. You can detect duplicates
# if you want.
}
close("file1.txt") # Polite are we...
}

{ # program body, checks for file2 entry is in file1. We are reading file2 now...
$0 = tolower($0)
if ($0 in arr) { # check if a single, incoming entry, is in arr[] or not
print $0 " is in both files"
} else {
print $0 " is not in file1.txt"
}
}

**************************** END diffemail.awk **************************

file1.txt
fOo@computer.com
baR@computer.com
bAz@computer.com

file2.txt
foO@computer.com
Bar@computer.com
Baz@computer.com
not@in.computer

Output

PS D:\> .\gawk.exe -f diffemail.awk file2.txt
foo@computer.com is in both files
bar@computer.com is in both files
baz@computer.com is in both files
not@in.computer is not in file1.txt
PS D:\>

You can spice up the program with as much if-then-else
that you care to. You can even store both files in memory
if you want.

*******

The gawk.exe file is in the binaries ZIP file here:

https://gnuwin32.sourceforge.net/packages/gawk.htm

Binaries Zip 1,448,542 10 February 2008 f875bfac137f5d24b38dd9fdc9408b5a

Name: gawk-3.1.6-1-bin.zip
Size: 1448542 bytes (1414 KiB)
SHA1: BDA507655EB3D15059D8A55A0DAF6D697A15F632

Program uses Windows line endings, whereas the bash shell version
would use Linux line endings.

Program does not support unicode or the like. It is
just for plain ASCII at the moment.

It's not really a practical program, just a demo of
how easy it is to whip something up.

And every language... has something it is not good at.
This language is not an exception to that.

Paul

Re: Lower case and diff two text files contents of email addresses

<tvidkf$19t9q$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69942&group=alt.comp.os.windows-10#69942

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Zaidy...@air.isp.spam (Zaidy036)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Thu, 23 Mar 2023 16:42:55 -0400
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <tvidkf$19t9q$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvi778$18u8r$1@dont-email.me>
Reply-To: Zaidy036@air.isp.spam
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 20:42:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d08de3d508fa473ccba4cd5a26bb7b97";
logging-data="1373498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2VUj5Kcnis28Dmb85Scx7sYNYSPhtuP0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:68dT+gPCXFDM0ROY4h7J+6rF0RI=
In-Reply-To: <tvi778$18u8r$1@dont-email.me>
Content-Language: en-US
 by: Zaidy036 - Thu, 23 Mar 2023 20:42 UTC

On 3/23/2023 2:53 PM, Graham J wrote:
> Maxmillian wrote:
>> I have two long lists of email addresses in Windows 10 as text files.
>>
>> How can I lowercase everything and then get a diff of what email
>> addresses are in one text file but not in the other text file?
>>
>
>
>
> Are the email addersses separated in any way, with commas, spaces, tabs,
> or semicolons?
>
> If so, import each list into a speadsheet so that there is one email
> address per line.  Sort the lines.  Compare the two spreadsheets.
>
> Look up fc for file compare
>
> fc /?
>
>
free for non-commercial ASAP Utilities has a function to mark duplicates

Re: Lower case and diff two text files contents of email addresses

<c3ep1itsbse1fvp764bs30rfigro9m94qc@4ax.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69943&group=alt.comp.os.windows-10#69943

 copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 23 Mar 2023 20:48:00 +0000
From: dan...@no.spam.thanks (DAN)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Thu, 23 Mar 2023 21:44:30 +0100
Organization: Organized? me?
Reply-To: here@this.group
Message-ID: <c3ep1itsbse1fvp764bs30rfigro9m94qc@4ax.com>
References: <tvi5tu$32478$1@news.samoylyk.net>
X-Newsreader: Forte Agent 1.92/32.572
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 8
X-Trace: sv3-Ivj4Gljc5kCf+TQG2J1gMwuzOWE3oep7Km4+00ukeokD1F9/xElERAcoOjQEsCrEKAS0E9nR/C8KQx6!Yt+OCnP6LBV1GBahQcf+1abB/fF5veLF9bk5HwlxXi8DaRRsN38SbZXhcW4MhXXTLQiC6+Wmel+I!kkYAAQ==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: DAN - Thu, 23 Mar 2023 20:44 UTC

Maxmillian wrote:

>I have two long lists of email addresses in Windows 10 as text files.

>How can I lowercase everything and then get a diff of what email
>addresses are in one text file but not in the other text file?

Look at WinMerge https://winmerge.org/

Re: Lower case and diff two text files contents of email addresses

<tvis39$1cbd9$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69946&group=alt.comp.os.windows-10#69946

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 01:49:46 +0100
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <tvis39$1cbd9$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 00:49:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7cfd9f81ad2585652a551fa9fa183980";
logging-data="1453481"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yc9Si5eH4AtSxQDF2rbk69i3XJsjc5jc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:YpyF+0EKJT/miuF5W8jmoEHK1lQ=
In-Reply-To: <tvi5tu$32478$1@news.samoylyk.net>
Content-Language: de-DE, en-US
 by: Herbert Kleebauer - Fri, 24 Mar 2023 00:49 UTC

23.03.2023 19:31, Maxmillian wrote:
> I have two long lists of email addresses in Windows 10 as text files.
>
> How can I lowercase everything and then get a diff of what email
> addresses are in one text file but not in the other text file?

Because you posted in alt.msdos.batch, here a batch solution:

@echo off

:: list all email addresses which are not in both
:: input files (email1.txt, email2.txt)

if [%1]==[sub] goto :sub
sort email1.txt|find "@" >email1s.txt
sort email2.txt|find "@" >email2s.txt
cmd /c %0 sub
del email1s.txt
del email2s.txt
goto :eof

:sub
setlocal EnableDelayedExpansion

3<email1s.txt 4<email2s.txt (
set line1a=&set /P line1a=<&3
set line2a=&set /P line2a=<&4
set line1b=&set /P line1b=<&3
set line2b=&set /P line2b=<&4

for /l %%i in (1,1,100000) do (
if /I [!line1a!]==[!line2a!] (
if [!line1a!]==[] exit
set line1a=!line1b!
set line2a=!line2b!
set line1b=&set /P line1b=<&3
set line2b=&set /P line2b=<&4
) else (
if /I [!line1a!]==[!line2b!] (
echo !line2a! in email2.txt but not in email1.txt
set line2a=!line2b!
set line2b=&set /P line2b=<&4
) else (
if /I [!line1b!]==[!line2a!] (
echo !line1a! in email1.txt but not in email2.txt
set line1a=!line1b!
set line1b=&set /P line1b=<&3
) else (
echo !line1a! in email1.txt but not in email2.txt
echo !line2a! in email2.txt but not in email1.txt
set line1a=!line1b!
set line2a=!line2b!
set line1b=&set /P line1b=<&3
set line2b=&set /P line2b=<&4
)
)
)
)
)

Re: Lower case and diff two text files contents of email addresses

<tvj5om$30kqo$1@paganini.bofh.team>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69948&group=alt.comp.os.windows-10#69948

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: nos...@nospam.net (Andy Burnelli)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 03:35:01 +0000
Organization: To protect and to server
Message-ID: <tvj5om$30kqo$1@paganini.bofh.team>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 03:34:47 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3167064"; posting-host="5bHvr0C2xoOziEsjJ+uQMQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:dm2xaMxVhBhom615T+SAET+1nSI1z2s6+wCK5/sfejA=
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.3
 by: Andy Burnelli - Fri, 24 Mar 2023 03:35 UTC

Herbert Kleebauer wrote:

> 23.03.2023 19:31, Maxmillian wrote:
>> I have two long lists of email addresses in Windows 10 as text files.
>>
>> How can I lowercase everything and then get a diff of what email
>> addresses are in one text file but not in the other text file?
>
> Because you posted in alt.msdos.batch, here a batch solution:
>
> @echo off
>
>:: list all email addresses which are not in both
>:: input files (email1.txt, email2.txt)
>
> if [%1]==[sub] goto :sub
> sort email1.txt|find "@" >email1s.txt
> sort email2.txt|find "@" >email2s.txt
> cmd /c %0 sub
> del email1s.txt
> del email2s.txt
> goto :eof
>
>:sub
> setlocal EnableDelayedExpansion
>
> 3<email1s.txt 4<email2s.txt (
> set line1a=&set /P line1a=<&3
> set line2a=&set /P line2a=<&4
> set line1b=&set /P line1b=<&3
> set line2b=&set /P line2b=<&4
>
> for /l %%i in (1,1,100000) do (
> if /I [!line1a!]==[!line2a!] (
> if [!line1a!]==[] exit
> set line1a=!line1b!
> set line2a=!line2b!
> set line1b=&set /P line1b=<&3
> set line2b=&set /P line2b=<&4
> ) else (
> if /I [!line1a!]==[!line2b!] (
> echo !line2a! in email2.txt but not in email1.txt
> set line2a=!line2b!
> set line2b=&set /P line2b=<&4
> ) else (
> if /I [!line1b!]==[!line2a!] (
> echo !line1a! in email1.txt but not in email2.txt
> set line1a=!line1b!
> set line1b=&set /P line1b=<&3
> ) else (
> echo !line1a! in email1.txt but not in email2.txt
> echo !line2a! in email2.txt but not in email1.txt
> set line1a=!line1b!
> set line2a=!line2b!
> set line1b=&set /P line1b=<&3
> set line2b=&set /P line2b=<&4
> )
> )
> )
> )
> )

That is just sheer genius.

You should win a nobel prize for that as a diff has been the bane of
Windows users for years!

It's going into my batch folder immediately!

Re: Lower case and diff two text files contents of email addresses

<tvjm30$1j332$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69960&group=alt.comp.os.windows-10#69960

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 09:13:20 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <tvjm30$1j332$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvj5om$30kqo$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 08:13:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="69c841e6ca5fe3d68e187350f3a1f452";
logging-data="1674338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LBc0n/+6moaqFrd6EMi51ASGFEEYRep4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:yUbFzmE0GSLWsug3qFseeDtIqZ8=
In-Reply-To: <tvj5om$30kqo$1@paganini.bofh.team>
Content-Language: de-DE, en-US
 by: Herbert Kleebauer - Fri, 24 Mar 2023 08:13 UTC

On 24.03.2023 04:35, Andy Burnelli wrote:

> That is just sheer genius.

For genius solutions, you should ask ChatGPT.
From a discussion in de.comp.os.ms-windows.misc:

set v=39/2023

How to extract the two numbers in into variables v1 an v2

The answer from ChatGPT:

set v=39/2023
set v1=%v:/=&rem.%
set v2=%v:\=&rem.%
echo "%v%", "%v1%", "%v2%"

Ok, v2 is wrong, but that is the trivial part of the question.
But v1 is really good!!!

set v=39/2023
set v1=%v:/=&rem.%
set v2=%v:*/=%
echo "%v%", "%v1%", "%v2%"

Re: Lower case and diff two text files contents of email addresses

<k857hfFhs4jU1@mid.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69961&group=alt.comp.os.windows-10#69961

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 09:06:54 +0000
Lines: 20
Message-ID: <k857hfFhs4jU1@mid.individual.net>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvj5om$30kqo$1@paganini.bofh.team> <tvjm30$1j332$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net lqlrOAQTvFm/gWhR8EncIQzL4L7Dn3A+QoIt+rbmNEgaCpRlrJ
Cancel-Lock: sha1:FI3ngqCByxR8Yz3rFFNch2Yvxjk=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Content-Language: en-GB
In-Reply-To: <tvjm30$1j332$1@dont-email.me>
 by: Andy Burns - Fri, 24 Mar 2023 09:06 UTC

Herbert Kleebauer wrote:

> The answer from ChatGPT:
>
> set v=39/2023
> set v1=%v:/=&rem.%
> set v2=%v:\=&rem.%
> echo "%v%", "%v1%", "%v2%"
>
> Ok, v2 is wrong, but that is the trivial part of the question.
> But v1 is really good!!!

It it actually using undefined CMD behaviour?

I've never seen any reference to using & in a variable substitution

Or that substitutions are handled like a sub-command which you could
stick a REM statement in the middle of to ignore what follows

Re: Lower case and diff two text files contents of email addresses

<tvjtcb$1k9mb$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69966&group=alt.comp.os.windows-10#69966

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 11:17:47 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <tvjtcb$1k9mb$2@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvj5om$30kqo$1@paganini.bofh.team> <tvjm30$1j332$1@dont-email.me>
<k857hfFhs4jU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 10:17:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="69c841e6ca5fe3d68e187350f3a1f452";
logging-data="1713867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OqdeKuC93/OJinztkMFniQf0YzXr1CG4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:U/oa9oFgNLgYd1ziLA00qGG1f14=
Content-Language: en-US
In-Reply-To: <k857hfFhs4jU1@mid.individual.net>
 by: Herbert Kleebauer - Fri, 24 Mar 2023 10:17 UTC

On 24.03.2023 10:06, Andy Burns wrote:
> Herbert Kleebauer wrote:
>
>> The answer from ChatGPT:
>>
>> set v=39/2023
>> set v1=%v:/=&rem.%

> It it actually using undefined CMD behaviour?

Normal behavior, "/" is replaced by "&rem.", so you get:

set v1=39&rem.2023

which is equivalent to the two lines:

set v1=39
rem.2023

Re: Lower case and diff two text files contents of email addresses

<k85edjFite0U1@mid.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69967&group=alt.comp.os.windows-10#69967

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 11:04:18 +0000
Lines: 22
Message-ID: <k85edjFite0U1@mid.individual.net>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvj5om$30kqo$1@paganini.bofh.team> <tvjm30$1j332$1@dont-email.me>
<k857hfFhs4jU1@mid.individual.net> <tvjtcb$1k9mb$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net WmDgOlxhUSXYdz0MFOGVFAsZtrMohE6ApXrBdO6k3EpgsTiG1A
Cancel-Lock: sha1:Aiag5/4/3EKznQ36mtUYDrjCBjk=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Content-Language: en-GB
In-Reply-To: <tvjtcb$1k9mb$2@dont-email.me>
 by: Andy Burns - Fri, 24 Mar 2023 11:04 UTC

Herbert Kleebauer wrote:

> Andy Burns wrote:
>
>> It it actually using undefined CMD behaviour?
>
> Normal behavior, "/" is replaced by "&rem.", so you get:
>
> set v1=39&rem.2023
>
> which is equivalent to the two lines:
>
> set v1=39
> rem.2023

Still somewhat surprised that it works without using
enabledelayedexpansion (or calling cmd.exe /v)

I'd have thought after it parsed the original SET statement, it would
execute it "as was" not executing the &REM from after the substitution
had been done.

Re: Lower case and diff two text files contents of email addresses

<tvk83c$1m7s7$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69973&group=alt.comp.os.windows-10#69973

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 14:20:44 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <tvk83c$1m7s7$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 13:20:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="69c841e6ca5fe3d68e187350f3a1f452";
logging-data="1777543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TxupZgiUzhcO0LGV0zQbXFEsy6dYm5Ug="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:/thoitOe4UtM5nERa/sOJoEpioY=
Content-Language: en-US
In-Reply-To: <tvis39$1cbd9$1@dont-email.me>
 by: Herbert Kleebauer - Fri, 24 Mar 2023 13:20 UTC

On 24.03.2023 01:49, Herbert Kleebauer wrote:
> 23.03.2023 19:31, Maxmillian wrote:
>> I have two long lists of email addresses in Windows 10 as text files.
>>
>> How can I lowercase everything and then get a diff of what email
>> addresses are in one text file but not in the other text file?
>
> Because you posted in alt.msdos.batch, here a batch solution:
>
> @echo off
>
> :: list all email addresses which are not in both
> :: input files (email1.txt, email2.txt)
>

Sorry, this code doesn't work at all. Was to late yesterday,
but I wanted to try the idea of reading more input files
at the same time (was presented many years ago in a.m.b.nt).
Better use a small C program.

Re: Lower case and diff two text files contents of email addresses

<tvkeli$1n8up$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69980&group=alt.comp.os.windows-10#69980

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: Zaidy...@air.isp.spam (Zaidy036)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 11:12:50 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <tvkeli$1n8up$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvk83c$1m7s7$1@dont-email.me>
Reply-To: Zaidy036@air.isp.spam
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Mar 2023 15:12:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1956bf4791d4a8fa4031014cee194eea";
logging-data="1811417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ifrFeBTrtT9zUxPafUEjF7neIV6Xcf4U="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:lPQ5WrvWad9iP1xSNi3Mnpzo/4M=
Content-Language: en-US
In-Reply-To: <tvk83c$1m7s7$1@dont-email.me>
 by: Zaidy036 - Fri, 24 Mar 2023 15:12 UTC

On 3/24/2023 9:20 AM, Herbert Kleebauer wrote:
> On 24.03.2023 01:49, Herbert Kleebauer wrote:
>>    23.03.2023 19:31, Maxmillian wrote:
>>> I have two long lists of email addresses in Windows 10 as text files.
>>>
>>> How can I lowercase everything and then get a diff of what email
>>> addresses are in one text file but not in the other text file?
>>
>> Because you posted in alt.msdos.batch, here a batch solution:
>>
>> @echo off
>>
>> :: list all email addresses which are not in both
>> :: input files (email1.txt, email2.txt)
>>
>
> Sorry, this code doesn't work at all. Was to late yesterday,
> but I wanted to try the idea of reading more input files
> at the same time (was presented many years ago in a.m.b.nt).
> Better use a small C program.
>
>
Paste email file into Notepad or Notepad++ and select all and right
click and change to lower or upper case in one click if case compare is
a problem. Then in future only use one case because email addresses do
not care.

Re: Lower case and diff two text files contents of email addresses

<MPG.3e87610d612378ce9900aa@news.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=69982&group=alt.comp.os.windows-10#69982

 copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!news.samoylyk.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan...@fastmail.fm (Stan Brown)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Fri, 24 Mar 2023 08:26:43 -0700
Organization: Oak Road Systems
Lines: 34
Message-ID: <MPG.3e87610d612378ce9900aa@news.individual.net>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me> <tvj5om$30kqo$1@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net eChxinXOmb83ewktnw2CJAojKFl9A/+y5d1jfpJsKXZwIP4FEq
Cancel-Lock: sha1:ik3jnVENYsRQDz4KLrToPuY/9CE=
User-Agent: MicroPlanet-Gravity/3.0.11 (GRC)
 by: Stan Brown - Fri, 24 Mar 2023 15:26 UTC

On Fri, 24 Mar 2023 03:35:01 +0000, Andy Burnelli wrote:
>
>
> That is just sheer genius.
>
> You should win a nobel prize for that as a diff has been the bane of
> Windows users for years!
>
> It's going into my batch folder immediately!

Reminds me of the dancing bear -- you don't judge the quality of the
dancing, because the fact that it can be done at all is amazing.

I often use the freeware CSDIFF from Component Software. As compared
with a batch file, it has a graphical interface, various options for
the comparison, and differences displayed in context in the results
window.

Component Software doesn't seem to exist any more, but Archive.org
still has the download file:
<https://archive.org/details/csdiff25_zip>
It's 943 KB -- that's KB, not MB. No installer, just unzip it to use.

There's also my own freeware CMP (donations gratefully accepted), at
<https://brownmath.com/utils/cmp.htm>
It's a command-line program, so no Windows and no Unicode. But I
still find it useful for various tasks, including testing whether two
directory trees contain the same versions of all files, and if not
then which ones differ. Circling back to the original; question, CMP
has an option to ignore upper/lower case in the comparison.

--
Stan Brown, Tehachapi, California, USA https://BrownMath.com/
Shikata ga nai...

Re: Lower case and diff two text files contents of email addresses

<tvqg6j$2sjm8$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=70063&group=alt.comp.os.windows-10#70063

 copy link   Newsgroups: alt.comp.os.windows-10 alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Sun, 26 Mar 2023 18:15:46 -0400
Organization: A noiseless patient Spider
Lines: 139
Message-ID: <tvqg6j$2sjm8$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvi9e8$19a2h$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 26 Mar 2023 22:15:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a697bc5e6af230b9bd317be7eb9d817d";
logging-data="3034824"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tBx2QCLUvChYKrex3r+MlQaJY+lmKj2c="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:poVaVxcZmTRRZfNrszhC/3+WfHw=
In-Reply-To: <tvi9e8$19a2h$1@dont-email.me>
Content-Language: en-US
 by: Paul - Sun, 26 Mar 2023 22:15 UTC

On 3/23/2023 3:31 PM, Paul wrote:
> On 3/23/2023 2:31 PM, Maxmillian wrote:
>> I have two long lists of email addresses in Windows 10 as text files.
>>
>> How can I lowercase everything and then get a diff of what email
>> addresses are in one text file but not in the other text file?
>>

**************************** diffemail2.awk **************************
# Assumes file1.txt and file2.txt are in the current working directory
# # .\gawk.exe -f diffemail2.awk file1.txt file2.txt common-out.txt
# ARGV[0] ARGV[1] ARGV[2] ARGV[3]
# ARGC=4
# normally, you would clear arguments before proceeding to read ( clear ARGV[3] )

BEGIN {
duplicates=0 # Your input is bad. Sanitize and retry. When bad, variable set to 1.
lines1=0 # count number of lines in file1 (to tell main loop, which input file we're in)
lines2=0 # malformed line number counter for file2
pass2 =0 # count number of lines of file1.txt and file2.txt processed in main loop
abend=1 # Set back to 0 if everything was OK
if ( ARGC != 4 ) {
print "Summary: gawk.exe -f diffemail2.awk file1.txt file2.txt common-out.txt"
exit(1)
}

file1=ARGV[1]
file2=ARGV[2]
output=ARGV[3]
# ARGV[1]="" # Zero out the args if you're not using them as input files
# ARGV[2]="" # Zero out the args if you're not using them as input files
ARGV[3]="" # Zero out the args if you're not using them as input files

while ( (getline < file1 ) > 0 ) { # load one file into memory
lines1++ # Figure out which file is being processed via line count
$0 = tolower($0)
if (length($0) > 0) { # don't process empty lines
if (NF != 1) { # an email address has no spaces in it, so only 1 string is present
printf("%s entry \"%s\" is malformed at line number %d\n", file1, $0, lines1)
duplicates=1
}
a[$0]++ # The array index is the key, array content currently dont matter much
if (a[$0] > 1) {
printf("%s entry %s is a duplicate\n", file1, $0)
duplicates=1
}
}
}
close(file1)

while ( (getline < file2 ) > 0 ) { # load one file into memory
lines2++ # for lines which are malformed
$0 = tolower($0)
if (length($0) > 0) {
if (NF != 1) {
printf("%s entry \"%s\" is malformed at line number %d\n", file2, $0, lines2)
duplicates=1
}
b[$0]++ # The array index is the key, array content currently dont matter much
if (b[$0] > 1) {
printf("%s entry %s is a duplicate\n", file2, $0)
duplicates=1
}
}
}
close(file2)
if (duplicates == 1) {
abend=1
exit(1) # don't execute main body or generate common-out.txt
} else { abend=0 }
}

{ # read file1.txt and file2.txt as "regular" input passed on command line
if (length($0) > 0) {
$0 = tolower($0)
if (pass2 < lines1) { # check whether entry from file1 is in file2
if ( ($0 in b) == 0 ) { printf("%s entry %s is not in file %s\n", file1, $0, file2 ) }
else { print $0 > output } # common-out.txt scans file1 items found in file2
} else { # check entry from file2 is in file1
if ( ($0 in a) == 0 ) { printf("%s entry %s is not in file %s\n", file2, $0, file1 ) }
}
}
pass2++ # increment lines processed on second pass,
# tells whether file1 or file2 is being processed, via the less-than check
}

END {
close( output )

print ""
if (abend == 0) { # Indicate normal run, if there was no obvious error
print "Check \"" output "\" for all email addresses common to both files"
}
} **************************** END diffemail2.awk **************************

file1.txt
abc@not.in.computer
fOo@computer.com
baR@computer.com
bAz@computer.com
abc@not.in.computer <=== remove duplicate entry, then retry
Bad input <=== remove things which are not an email address, retry
<=== empty lines are tolerated

file2.txt
not@in.computer
foO@computer.com
Bar@computer.com
Baz@computer.com
not@in.computer <=== remove duplicate entry, then retry
bad input <=== remove things which are not an email address, retry

Output from first run.

..\gawk.exe -f diffemail2.awk file1.txt file2.txt common-out.txt

file1.txt entry abc@not.in.computer is a duplicate
file1.txt entry "bad input" is malformed at line number 6
file2.txt entry not@in.computer is a duplicate
file2.txt entry "bad input" is malformed at line number 6

Output from second run.

..\gawk.exe -f diffemail2.awk file1.txt file2.txt common-out.txt

file1.txt entry abc@not.in.computer is not in file file2.txt
file2.txt entry not@in.computer is not in file file1.txt

Check "common-out.txt" for all email addresses common to both files

The common-out.txt file looks like this:

foo@computer.com
bar@computer.com
baz@computer.com

Paul

Re: Lower case and diff two text files contents of email addresses

<tvrvpn$36uio$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=70099&group=alt.comp.os.windows-10#70099

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.comp.microsoft.windows
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.comp.microsoft.windows
Subject: Re: Lower case and diff two text files contents of email addresses
Date: Mon, 27 Mar 2023 13:48:10 +0200
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <tvrvpn$36uio$1@dont-email.me>
References: <tvi5tu$32478$1@news.samoylyk.net> <tvis39$1cbd9$1@dont-email.me>
<tvk83c$1m7s7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 27 Mar 2023 11:48:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="01ba5b20d98a93b873d027f630e1ceeb";
logging-data="3373656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+t4IVAkBbDOKg1S7e1ntziSJ6N0nIuz0A="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:VEtT2Lt576pnNHq/dcxf+RrjV7w=
Content-Language: de-DE, en-US
In-Reply-To: <tvk83c$1m7s7$1@dont-email.me>
 by: Herbert Kleebauer - Mon, 27 Mar 2023 11:48 UTC

On 24.03.2023 14:20, Herbert Kleebauer wrote:
> On 24.03.2023 01:49, Herbert Kleebauer wrote:
>> 23.03.2023 19:31, Maxmillian wrote:
>>> I have two long lists of email addresses in Windows 10 as text files.
>>>
>>> How can I lowercase everything and then get a diff of what email
>>> addresses are in one text file but not in the other text file?
>>
>> Because you posted in alt.msdos.batch, here a batch solution:
>>
>> @echo off
>>
>> :: list all email addresses which are not in both
>> :: input files (email1.txt, email2.txt)
>>
>
> Sorry, this code doesn't work at all. Was to late yesterday,
> but I wanted to try the idea of reading more input files
> at the same time (was presented many years ago in a.m.b.nt).
> Better use a small C program.

Because I don't like unfinished tasks, here a version which
should work:

@echo off

:: list all email addresses which are not in both
:: input files (email1.txt, email2.txt)

if [%1]==[sub] goto :sub
sort email1.txt|find "@" >email1s.txt
sort email2.txt|find "@" >email2s.txt
cmd /c %0 sub
del email1s.txt
del email2s.txt
goto :eof

:sub
setlocal EnableDelayedExpansion

3<email1s.txt 4<email2s.txt (
set line1=&set /P line1=<&3
set line2=&set /P line2=<&4

for /l %%i in (1,0,2) do (
if /I [!line1!]==[!line2!] (
if [!line1!]==[] exit
set line1=&set /P line1=<&3
set line2=&set /P line2=<&4
) else (
if /I [!line1!] geq [!line2!] (
echo !line2! in email2.txt but not in email1.txt
set line2=&set /P line2=<&4
) else (
echo !line1! in email1.txt but not in email2.txt
set line1=&set /P line1=<&3
)
)
)
)

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor