[Gllug] sed enlightenment
Alain Williams
addw at phcomp.co.uk
Sat Sep 10 07:45:36 UTC 2005
On Fri, Sep 09, 2005 at 05:53:29PM +0100, Thomas Robinson wrote:
> Some might know what this does; so, just for a challenge, what does it
> do?
>
> s/\r$//
> :top
> /=$/{
> N
> s/=\n//
> }
> /=$/b top
Join a set of lines that end in '=' together, removing the '='.
The treatment of carriage returns at the end of line is inconsistent,
you might want to move the top label up a line.
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050910/6e5edda3/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list