ODFEXTRACT(1)
Hey bestie, welcome to ODFEXTRACT(1) π β this one lives under the User Contributed Perl Documentation umbrella, and itβs a whole little sample-script moment. Letβs get into it π«Ά
π NAME π
odfextract β Text selection and copy from one document to another one β¨
β¨ SYNOPSIS β¨
Okay so picture this: this is a sample script, and what it does is honestly kind of iconic β it extracts every text element that matches a given pattern (and yes, that pattern can be a string or a regex) from a source document, then appends it to a target document. Slay π
The target document must be an existing one β empty or not, both are fine β but bestie, it has to already be there. No target, no magic π«Ά
On the command line, the order is literally this:
- argument 1 β the source file name π
- argument 2 β the target file π
- argument 3 β the selection filter, i.e. any quoted string or Perl regular expression π
Lowkey important: that third one is the filter, so thatβs where you put your quoted string or your Perl regular expression. Periodt β¨
This page is brought to you by perl v5.42.3, dated 2010-07-12, with ODFEXTRACT(1) sitting in the footer like the main character it is π
π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-OpenOffice-OODoc 2.125
- nixpkgs unstable: perl5.42.3-OpenOffice-OODoc 2.125
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms