Re: [dev] Makefile/markdown based static site generator

From: <stanio_AT_cs.tu-berlin.de>
Date: Thu, 21 Feb 2013 10:15:30 +0100

* Sam Watkins 2013-02-21 06:21
> or other tools with simpler regexps:
>
> html_split | grep '^<!--' | sed 's/<!-- *//; s/ *-->$//'

Yeah, I find this more readable.
I'd even get rid of grep, sed is perfect for the job

        sed -n '/\s*^<!--/{
                s/<!-- *//;
                s/ *-->$//;
                p;
                q;
                }'

--s.
Received on Thu Feb 21 2013 - 10:15:30 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 21 2013 - 19:25:54 CET