[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Extract lines from file, add to new files
From: Thomas Passin via Python-list <python-list () python ! org>
Date: 2024-01-31 15:36:24
Message-ID: 146ad2c4-b243-47ed-87d5-c3f48fa2d3af () tompassin ! net
[Download RAW message or body]
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.
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic