ODFEXTRACT(1)

πŸ“¦ version 2.125, in nixos 26.05, nixpkgs unstable

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