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 -k is 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 πŸ‘‘
  • -i indent β€” sets how much indentation to use per level. the default is 4. pick your own adventure ✨
  • -s element β€” 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 of 100 β€” 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 πŸ’–βœ¨πŸ¦‹