[ILUG] sed

Timothy Murphy tim at birdsnest.maths.tcd.ie
Sun Jul 11 13:33:50 IST 2004


On Sunday 11 July 2004 12:13, olearypj at rte.ie wrote:

>              Thanks for the reply, this is a bit of the output form "od -c
> email" where I thought the blank lines were, or at least thats what it
> looks when I look at the email as a text file.
>
> 0003560   :       r   o   o   t   @   a   u   s   -   c   i   t   y   .
> 0003600   c   o   m  \r  \n  \r  \n  \r  \n   O   S   C   A   R       7
> 0003620  \r  \n   1       0   7   5   3   0   U       7   4   0   8   9
>
> The \r \n characters between city.com & oscar 7 is where I thought the
> blank lines  were

I'm sure one of the many ILUG sedomists will give an authoritative solution,
but I'd try [\r\n] in your script.
But I've only used sed twice in my life.

-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland



More information about the ILUG mailing list