odfsearch(1) Text selection and copy from one document to another using callback

SYNOPSIS

This sample script extracts the content of every text element (paragraph, header, list item) in a source document matching a given pattern (string or regex), and appends it as a new paragraph to a target document. The target document must exist.

The target document must exist (it can be an empty document or a template).

usage : odfsearch target_file source_file ``search_string''