ODFFINDBASIC(1)

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

πŸ’… odffindbasic β€” or, how to yeet Basic macros out of your OpenOffice.org files ✨

okay so bestie, welcome to odffindbasic, a little icon from the Perl world (User Contributed Perl Documentation, no less πŸ‘‘). She's a simple command that lets you detect, export, or remove the Basic modules hanging out inside a regular OpenOffice.org file. Lowkey a vibe check for macros. πŸ¦‹


🌸 USAGE 🌸

odffindbasic [options] <sourcefile> [<targetfile>]

Yup, that's it. Source file first, optional target file second, options wherever you want them. Slay. πŸ’–


✨ DESCRIPTION ✨

bestie. this command is literally the macro bouncer for your OpenOffice.org files. she can detect, export, or remove the Basic modules in a regular OpenOffice.org file, and she does not miss. πŸ’…

Run her with no options and she just tells you the number of Basic modules she found in the file. That's her default main character energy. πŸ‘‘

And the 2nd filename? That one's a team effort β€” it's used in combination with the --delete option. iykyk. 🫢


πŸŽ€ OPTIONS πŸŽ€

  • --nocount β€” stops the program from displaying the number of Basic modules found. so she does the work in silence, no receipts, very mysterious of her πŸ™ˆ
  • --delete, -d β€” ok this is the big one. If this option is set, the Basic modules are physically deleted, and the file manifest is updated accordingly. πŸ’€

but (and this is the important part) the document content remains unchanged, even if it contains some references to the deleted macros. The code is removed β€” so the macros are no longer executable. gone. not coming back. periodt. πŸ”₯

If you hand over a target file name as a 2nd argument, the changes are saved in it and the source file remains unchanged. so your original stays safe and untouched, like a good little backup πŸ’–

  • --export, -e β€” exports the macros! Every Basic module gets extracted and converted to a flat Basic source file in the current directory. πŸ“ The name of each created file is constructed according to the corresponding path in the ODF file, and its suffix is "bas". cute, organized, iconic. πŸŽ€
  • --list, -l β€” the Basic modules are listed through the standard output. just a little parade of macros, right there in your terminal 🌈
  • --verbose β€” some information messages are printed. she's a talker when you ask her to be πŸ—£οΈβœ¨

ngl bestie, --delete is doing real surgery β€” the manifest gets updated and the code is genuinely removed. The document content itself stays as-is, so any leftover references to those deleted macros are still chilling in there. she told you, you were warned, no cap 🫢

kisses and bye-bye πŸ’œ β€” this page came from the User Contributed Perl Documentation, and the footer says perl v5.42.3 dated 2010-07-12. vintage! she's been serving since 2010 and still ate. πŸ‘‘βœ¨

πŸ“¦ where this page comes from