[exim] Re: Best way to split multiline string

2024-10-13 Thread Kirill Miazine via Exim-users
• Ian Z via Exim-users [2024-10-13 17:49]: On Sun, Oct 13, 2024 at 11:51:31AM GMT, Evgeniy Berdnikov via Exim-users wrote: I need to inspect the output from en external program (run via the ${run} expansion). The program outputs multiple lines, only the first is relevant to me. What is the le

[exim] Re: Best way to split multiline string

2024-10-13 Thread Ian Z via Exim-users
On Sun, Oct 13, 2024 at 11:51:31AM GMT, Evgeniy Berdnikov via Exim-users wrote: > > I need to inspect the output from en external program (run via the > > ${run} expansion). The program outputs multiple lines, only the > > first is relevant to me. What is the least painful way to extract > > it? I

[exim] Re: Best way to split multiline string

2024-10-13 Thread Evgeniy Berdnikov via Exim-users
On Sat, Oct 12, 2024 at 12:36:33PM -0700, Ian Z via Exim-users wrote: > I need to inspect the output from en external program (run via the > ${run} expansion). The program outputs multiple lines, only the first > is relevant to me. What is the least painful way to extract it? I mean > the least num

[exim] Re: Best way to split multiline string

2024-10-12 Thread Kirill Miazine via Exim-users
• Jeremy Harris via Exim-users [2024-10-12 22:44]: On 12/10/2024 20:36, Ian Z via Exim-users wrote: The program outputs multiple lines, only the first is relevant to me. What is the least painful way to extract it? Probably a ${sg } (assuming you don't have to handle *escaped* newlines) ${sg

[exim] Re: Best way to split multiline string

2024-10-12 Thread Jeremy Harris via Exim-users
On 12/10/2024 20:36, Ian Z via Exim-users wrote: The program outputs multiple lines, only the first is relevant to me. What is the least painful way to extract it? Probably a ${sg } (assuming you don't have to handle *escaped* newlines) -- Cheers, Jeremy -- ## subscription configuration (re