
24 Sep
2010
24 Sep
'10
1:38 p.m.
Il 24/09/2010 11:47, Peter Kruse ha scritto:
echo '> @ B' | sed -e 's/[ ]*([@<>,])[ ]*/\1/g'
@ B
Uh? Badly broken sed?
The first time it should replace "> " with ">" and the second time it should replace "@ " with "@".
I don't see any other sensible behaviour, however in this commit has been introduced a lightly different approach that maybe work around that bug, can you try it?
commit b68f8ff2bde57db64ec4439d8a2592da351742e4 Author: Roberto Bagnara bagnara@cs.unipr.it Date: Thu Aug 5 09:08:44 2010 +0200
Avoid using overlapping regular expressions.
--
Abramo Bagnara
Opera Unica Phone: +39.0546.656023
Via Borghesi, 16
48014 Castel Bolognese (RA) - Italy