On Sat, Jan 23, 2010 at 02:22:36AM +0100, Ingo Schwarze wrote: > Hi Marcello, > > Marcello Cruz wrote on Fri, Jan 22, 2010 at 10:31:18PM -0200: > > > I've read the documentation about sed - sed(8), re_format(7) and > > /usr/share/doc/usd/15.sed/ - but I still don't realize how to make > > this command work: > > First decide whether you want to use basic or extended regular > expressions. Than stick to that. [...] > > schwa...@rhea $ echo "Abc.sgml\nBcd.sgml" | \ > > sed -E 's/^([A-Z].*)\.sgml$/\1.html/' > Abc.html > Bcd.html
The -E flag to use extented regex was added _after_ the 4.6 release. It's only available to those that run current now and 4.7 in May. Isn't there anyone running -stable release anymore? I feel like dead weight in here. :) > > > Yours, > Ingo -- Hugo Villeneuve <h...@eintr.net> http://EINTR.net/