* 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.
