Re: inserting beg/end lines by blocks of text
On Thu, 22 Nov 2007 22:49:40 -0600,
Ed Morton <morton@xxxxxxxxxxxxxx> wrote:
[...]
$1 != prev { print (prev ? prev " end" ORS : "") $1 " beg"; prev=$1 } 1
END { print prev " end" }
This is sweet, I've rarely played with this sort of expressions.
--
Seb
.
Relevant Pages
- OT The Search to date
... You sort of tear off a piece ... Not terribly sweet but very tasty and satisfyingly chewy. ... strongly date flavoured toffee with a little roughage. ... The "Sticky" Dates. ... (uk.rec.motorcycles) - Re: OT - an announcement
... flirting he mentioned that "computers are evil". ... He's sweet all right, but I'm not sure I can trust anyone so alien ... mean first invest in either pepper spray or a cattle prod. ... If you're that sort of kinky enough. ... (rec.arts.sf.tv) - Relf: Bereft of His Indian Lover -- Seek Solace in New Growth
... It was short and sweet -- sort of like the tiny candied balls they sell at ... you have tasted an Indian Sweet of another sort. ... Is that why you Kow-Tow to Bill Gate$ -- in the hope that he will increase ... (microsoft.public.dotnet.general) - Re: OT - an announcement
... And then after about 12 hours of us flirting he mentioned that "computers are evil". ... He's sweet all right, but I'm not sure I can trust anyone so alien with my person. ... mean first invest in either pepper spray or a cattle prod. ... If you're that sort of kinky enough. ... (rec.arts.sf.tv) - Re: S - Y Parameter conversion with Smith Chart
... > sweet answers. ... I take the time to sort through all of the questions and all ... > of the responses in a thread because if I can't offer some advice, ... > Can you guys take this to a more private venue please?? ... (sci.electronics.design) |
|