On 2010-02-02, Tommaso Cucinotta wrote:
> Guenter Milde wrote:

>> However, grep for a phrase in a set of lyx documents
>> (all papers of the last 3 years, say) is still a valid case.

> sure, that's something at which grep is surely unbeatable and faster.

Now combine this with locate to search the whole system:

  grep my-pattern `locate *path-pattern*lyx`

...

> Anyway, I think an XML file-format would almost certainly preserve the
> "grep" ability, and within certain boundaries I guess also a
> regex-based replace.

I even think a properly written XML can be easier to parse/grep, e.g.
by inlining inline tags like::


  Some 
  \begin_inset ERT
  status open
  
  \begin_layout Plain Layout
  
  {
  \end_layout
  
  \end_inset
  
  silly
  \begin_inset ERT
  status open
  
  \begin_layout Plain Layout
  
  }
  \end_layout
  
  \end_inset
  
   text.
  \end_layout

with::

  Some <ERT status='open'>{</ERT>silly<ERT status='open'>{</ERT> text.

Günter

Reply via email to