Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You are in a maze of UUCP connections, all alike.


devel / alt.msdos.batch / 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 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 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/devel/article-flat.php?id=365&group=alt.msdos.batch#365

 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/devel/article-flat.php?id=366&group=alt.msdos.batch#366

 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/devel/article-flat.php?id=367&group=alt.msdos.batch#367

 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/devel/article-flat.php?id=368&group=alt.msdos.batch#368

 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

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

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=369&group=alt.msdos.batch#369

 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/devel/article-flat.php?id=370&group=alt.msdos.batch#370

 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/devel/article-flat.php?id=371&group=alt.msdos.batch#371

 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/devel/article-flat.php?id=372&group=alt.msdos.batch#372

 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/devel/article-flat.php?id=373&group=alt.msdos.batch#373

 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/devel/article-flat.php?id=374&group=alt.msdos.batch#374

 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/devel/article-flat.php?id=375&group=alt.msdos.batch#375

 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/devel/article-flat.php?id=376&group=alt.msdos.batch#376

 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

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

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=381&group=alt.msdos.batch#381

 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