---
name: "odfsearch"
section: "1p"
platform: "linux"
package: "libopenoffice-oodoc-perl"
version: "2.125-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/odfsearch"
---

# odfsearch(1p)

Text selection and copy from one document to another using callback

## NAME

odfsearch - 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"
