On Fri, Jan 22, 2010 at 7:31 PM, Marcello Cruz <marcello.c...@globo.com> wrote: > $ s/(^[A_Z]{1})([a-z]+)\.sgml/\1\2\.html/g > > As I read I must prefix the '{', '}', '(' and ')' with backslashes. Even if > I do so, the command does not work. The command should take a filename > starting with a capital letter followed with the extension 'sgml' and > translate the extension to 'html'.
1. Always show the commands you're actually running. 2. If you actually did type [A_Z], that's wrong. 3. 's/\([A-Z][a-z]*\)\.sgml/\1.html/g'