Extract lines from file, add to new files

Rich Shepard rshepard at appl-ecosys.com
Fri Jan 12 11:39:17 EST 2024


On Fri, 12 Jan 2024, AVI GROSS via Python-list wrote:

> But is the solution a good one for some purpose? The two output files may
> end up being out of sync for all kinds of reasons. One of many "errors"
> can happen if multiple lines in a row do not have an "@" or a person's
> name does, for example. What if someone supplied more than one email
> address with a comma separator? This may not be expected but could cause
> problems.

Avi,

For my use 1) the salutation and email address (always with an '@') are
sequential and 2) I'm developing the script to extract both from the same
file.

Regards,

Rich


More information about the Python-list mailing list