opaxmlfilter(8)
β¨ NAME β¨
okay so bestie, welcome to opaxmlfilter β it's a lil command from the IFSFFCLIRG man page family and it is lowkey iconic π
Here's the vibe: it takes an XML file, yeets out every XML tag you tell it to remove, and prints what's left. And because it's a generous queen, it can also reformat the indentation while it's at it. π
The way that opaxmlfilter is literally the opposite of opaxmlextract β like, they're the two halves of one friend group. π«Ά
πΈ Syntax πΈ
opaxmlfilter [-t|-k] [-l] [-i indent] [-s element] [input_file]
that's it, that's the whole summoning ritual β¨
π Options π
--helpβ prints the full help text for you. your personal hype document, fr fr π-tβ trims the leading and trailing whitespace inside tag contents. no more awkward extra spaces, she's tidy now π§-kβ for tags that are purely whitespace and happen to contain newlines, this keeps those newlines exactly as-is. the default behaviour (i.e. when you don't pass-k) is to format them as an empty list. so-kis the "leave my newlines alone" flag π-lβ adds comments with line numbers after every end tag. it's giving "diffing is so much easier now" because the original line numbers are right there for you π-iindent β sets how much indentation to use per level. the default is4. pick your own adventure β¨-selement β names the XML element you want to suppress (i.e. the tag getting the boot π). you can use this one multiple times β up to a max of100β and in any order you want.- input_file β the XML file to read. if you don't give one, the default is
stdinπ
heads up bestie: -s maxes out at 100 uses. that's the ceiling. plan accordingly π
and that's the whole page!! source/version, for the record: this is from IFSFFCLIRG (Man Page), Β© Copyright(C) 2015-2019 Intel Corporation β and the page itself is dated accordingly. stay slay, go filter some XML, mwah πβ¨π¦
π¦ where this page comes from
- centos-stream 9: opa-fastfabric 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-fastfabric 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-fastfabric 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-fastfabric 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-fastfabric 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-fastfabric 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-fastfabric 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-fastfabric 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-fastfabric 10.10.3.0.11-1ubuntu5 Β· BSD-3-clause-top
- Copyright 2015-2019, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms