Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Nothing happens.


devel / comp.lang.python / Re: Extract lines from file, add to new files

SubjectAuthor
o Re: Extract lines from file, add to new filesThomas Passin

1
Re: Extract lines from file, add to new files

<mailman.34.1706715388.3227.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24988&group=comp.lang.python#24988

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Extract lines from file, add to new files
Date: Wed, 31 Jan 2024 10:36:24 -0500
Lines: 19
Message-ID: <mailman.34.1706715388.3227.python-list@python.org>
References: <3acb2c7a-54a9-191d-b721-8f7180f32810@appl-ecosys.com>
<146ad2c4-b243-47ed-87d5-c3f48fa2d3af@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de hoqcQNPm++sKvowo3zNbbASY9pwjysFowy4d9/2narfQ==
Cancel-Lock: sha1:fvXVL0D7K0wCpSnH52ePkOW7tL4= sha256:JZp39Sovhv4kpQkUp0OfKYSddMEIcAkhBk9/5hrdad8=
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=Do00d9oc;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.005
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'looks': 0.02; 'loop':
0.07; 'subject:add': 0.07; 'subject:files': 0.09; 'anyway.': 0.16;
'bash': 0.16; 'pipe': 0.16; 'received:10.0.0': 0.16;
'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16; 'received:dreamhost.com': 0.16;
'script.': 0.16; 'shepard': 0.16; 'sounds': 0.16; 'wrote:': 0.16;
'python': 0.16; 'probably': 0.17; 'tue,': 0.19; 'to:addr:python-
list': 0.20; 'subject:file': 0.22; "i'd": 0.24; 'bit': 0.27;
'header:User-Agent:1': 0.30; 'am,': 0.31; 'putting': 0.31;
'program': 0.31; 'good.': 0.32; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'script': 0.33; 'header
:In-Reply-To:1': 0.34; 'files': 0.36; 'subject:from': 0.37;
'using': 0.37; 'others': 0.37; 'file': 0.38; 'two': 0.39; 'use':
0.39; 'rest': 0.39; 'still': 0.40; 'program.': 0.40; 'something':
0.40; 'should': 0.40; 'send': 0.63; 'let': 0.66;
'header:Received:6': 0.67; 'received:64': 0.67; 'head': 0.73;
'personalized': 0.84; 'replacing': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1706715383; a=rsa-sha256;
cv=none;
b=VOi40N21nAG8iLF33PbOCjVYsH3LPJGzJhVPYyxPq+kFVJJ6vQ7FC5gzUqLTyWPwIc68l8
jaH4aJWJVS2nxRzYknInLFoJnOxR5MsMWlxDx/JdEY4bI2/idZdDUUsiUgXGVFEFMfl9Pa
AqLmU2Zg8FB/37oUD4cgeyrqMVabmpofT1nj+kLJbSsDQrPOkGcGMUu3RQYAfL5dVswUFn
zunFa/pvo4dSGJcmalIp8MCzfsPbZrj7xcgnyiPLz7pkq+2NOkLt9rR+pDNVUWVIRWURu9
7aU8G9GKDOqTRwKOK5xUuemeOR7QYDiyPLhReab9vf5rsJuHuM8VQbase4O2DA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1706715383;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=jNjESkFDT4PwoRvRztML0o/V/9Mh7M52s+kS+tXBtyQ=;
b=Yh9CYMFo3Yi503csP5O6YLB1GP0zILRv8EAcoyxp5VES7vWmK8cST3U22QbHcrNLNG+gJ7
gdMaXI9IIZDeIKoaeDrwDvNqoKDs7PbDqlaQstwYpaBOe8IYdIqH0rcKhOuOTO/oPc6lyU
6hA7shnlRZU6QgfLJTSUaMlNVbkzPIZ6bteKTx7IvIb1bZ60VdhvEMqF3WBse4Henj/apP
+sCVfHqvuj+dvE/uhk4SlMzJnJXg6P2clPS0dvDxE3nMyFt4dE7Atl7d4i1XuzPbzmchAH
X7z5/IZI7780s6RZd44VlmerVlJzxMuN++9pVaAiBzJtfVRojSBbD/sNUlvGrA==
ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-762j4;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Shade-Shoe: 2e9c277d46724204_1706715383997_3345206162
X-MC-Loop-Signature: 1706715383997:3003942232
X-MC-Ingress-Time: 1706715383997
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1706715383;
bh=jNjESkFDT4PwoRvRztML0o/V/9Mh7M52s+kS+tXBtyQ=;
h=Date:From:Subject:To:Content-Type:Content-Transfer-Encoding;
b=Do00d9ocyPbGwk8rcP/Pk2IQuCF1wPZzbvdIPYUPPDrxUPBMXtQFB4AAyDShlOgH9
ybnLwd7Xr59pkLDfN5mm5Lp0QF7JgivP1MY0VChoVNnHLl6PSerzp2F/bAKj2mxYU4
rxa/uhnVcAGos2gQ5vdMkII+CKrXdIy1iaMWDHjDcC3mL1MR///12bteqwH9swmd40
aZpKeEtr5Ga47Tdir+/wub0kbWGGoz0AoxsmPk+CiJV7py8PKd1E8Zmo0teuzvSRW6
V03rVohAkVhnggu57yxe/gD+Lboibl6OAwM6c0OSMZ8H6/CqXVvTnovQQ0jrZxUaYh
31SFUEiWBbgBg==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <3acb2c7a-54a9-191d-b721-8f7180f32810@appl-ecosys.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <146ad2c4-b243-47ed-87d5-c3f48fa2d3af@tompassin.net>
X-Mailman-Original-References: <3acb2c7a-54a9-191d-b721-8f7180f32810@appl-ecosys.com>
 by: Thomas Passin - Wed, 31 Jan 2024 15:36 UTC

On 1/31/2024 9:05 AM, Rich Shepard via Python-list wrote:
> On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote:
>
>> If I had a script that's been working for 30 years, I'd probably just use
>> Python to do the personalizing and let the rest of the bash script do the
>> rest, like it always has. The Python program would pipe or send the
>> personalized messages to the rest of the bash program. Something in that
>> ballpark, anyway.
>
> Thomas,
>
> A bash shell script looks easier for me and more promising. Using a while
> loop (one for the name file the other for the address file), and sed for
> putting the name at the head of the message replacing a generic placeholder
> should work with the existing for loop script.

Sounds good. I'd still be a bit worried about the two files getting out
of sync, as others have mentioned.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor