Archaic wrote:
> The font configuration section of xorg shows a sed that clobbers
> Bitstream Vera fonts. While DejaVu is clearly preferred, do we want to
> remove the references to Bitstream?
> 
> I've been playing around with sed and came up with this:
> 
> sed -i \
>   's,\(^\t\t*\)\(<family>Bitstream Vera\)\(.*\),\1<family>DejaVu\3\n\1\2\3,' \
>   fonts.conf

I don't have time this morning to check it out, but how about:

sed -ir \
  's,(^\t\t*)(<family>Bitstream Vera)(.*),\1<family>DejaVu\3\n\1\2\3,' \
   fonts.conf

or perhaps

  '/(^\t\t*)Bitstream Vera(.*)/i\1DejaVu\3\n'


IIRC, -r or --regexp-extended means you don't need to \ parens.

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to