Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

HOST SYSTEM RESPONDING, PROBABLY UP...


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

SubjectAuthor
o Re: Extract lines from file, add to new filesRich Shepard

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rshep...@appl-ecosys.com (Rich Shepard)
Newsgroups: comp.lang.python
Subject: Re: Extract lines from file, add to new files
Date: Wed, 31 Jan 2024 06:05:33 -0800 (PST)
Lines: 18
Message-ID: <mailman.33.1706709936.3227.python-list@python.org>
References: <3acb2c7a-54a9-191d-b721-8f7180f32810@appl-ecosys.com>
Reply-To: Rich Shepard <rshepard@appl-ecosys.com>
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=US-ASCII
X-Trace: news.uni-berlin.de EN8m6dr+CaujzEAeBTm53getrPKJvFm9icujnXx6zgug==
Cancel-Lock: sha1:nOb/fpJ16JXntOOnR7co9DmQ/r4= sha256:GMDMmkuGLVr/KUljkjBa2zKdrHuwc2fJNNwgJ+Oih9c=
Return-Path: <rshepard@appl-ecosys.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
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; 'from:addr:appl-ecosys.com': 0.16;
'from:addr:rshepard': 0.16; 'from:name:rich shepard': 0.16;
'pipe': 0.16; 'received:50.126': 0.16; 'received:50.126.108':
0.16; 'received:50.126.108.78': 0.16; 'received:appl-ecosys.com':
0.16; 'received:mail.appl-ecosys.com': 0.16; 'script.': 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;
'putting': 0.31; 'program': 0.31; 'python-list': 0.32; 'script':
0.33; 'thanks,': 0.36; 'subject:from': 0.37; 'using': 0.37;
'received:192.168': 0.37; 'file': 0.38; 'use': 0.39; 'rest': 0.39;
'program.': 0.40; 'something': 0.40; 'should': 0.40; 'send': 0.63;
'let': 0.66; 'head': 0.73; 'header:Reply-To:1': 0.79;
'personalized': 0.84; 'replacing': 0.91
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: <3acb2c7a-54a9-191d-b721-8f7180f32810@appl-ecosys.com>
 by: Rich Shepard - Wed, 31 Jan 2024 14:05 UTC

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.

Thanks,

Rich

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor