On Thu, 11 Jan 2024, Robert Citek wrote:

Have a look at the IFS and RS variables in awk. IIRC, you can specify the
RS as '\n\n' and the IFS as '\n'. So printing the first line in a record
becomes ' { print $1 } ' once those variables are set.

Robert,

Rather than working to create two input files from a single one I'm
developing a Python script that will do this and send out an email message
with a salutation and, when needed, an attachment or two.

Thanks for the awk reminders.

Regards,

Rich

Reply via email to