ODF_SET_FIELDS(1p)

πŸ“¦
version 2.125 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

odf_set_fields β€” bestie, this one sets the names and values for your user-defined fields. That's it, that's the whole job, and it does it slayfully ✨


🌸 USAGE 🌸

odf_set_fields <filename> -options

yeah it's literally that simple, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so picture this: it's a sample script, and what it does is it goes in and updates or creates 4 user-defined fields in your ODF file, and on top of that it adds brand new keywords. Existing keywords? Preserved, bestie, we don't touch them πŸ’–

but the old user-defined fields β€” both their names and their values? deleted and replaced. gone. replaced. no takebacks πŸ™ˆ

and then the revision number of the document gets incremented by 1. one (1) single increment. iconic behaviour fr fr πŸ‘‘

also important: the keywords have to be passed as a comma-separated list through the -keywords option. that's the rule, periodt.

the user-defined fields/options, aka the whole main character lineup, are:

  • -contact
  • -organization
  • -status
  • -diffusion

🌈 Examples 🌈

these are the moments, the way that these exist:

odf_set_fields foo.odt -contact "Donald Duck" -organization "Genicorp"
odf_set_fields foo.odt -status "Complete" -keywords "software, office"

look at that second one β€” "software, office" β€” comma-separated, just like we said 🫢


and that's the whole page, no filler, no fluff, just vibes and correct Unix usage. This one's a 1p page β€” the User Contributed Perl Documentation corner of the world πŸŽ€ β€” and it came to you from perl v5.34.0, dated 2022-06-16. mwah, go forth and set those fields πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from