ODFFINDBASIC(1)
π 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
- 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