SFEED_XMLENC(1)
π SFEED_XMLENC π
okay bestie, gather round, because this little cutie is a one-job icon and she does her job flawlessly π
β¨ NAME β¨
sfeed_xmlenc β get text-encoding from XML π¦
like, that's it. that's the whole personality. she sniffs out the encoding and hands it to you. no cap.
π SYNOPSIS π
sfeed_xmlenc
no flags. no arguments. no drama. she just exists and you pipe stuff into her. main character energy fr fr π
πΈ DESCRIPTION πΈ
okay so here's the vibe: sfeed_xmlenc reads XML data from stdin and writes the found text-encoding to stdout. that's the whole flow. in goes XML, out goes the encoding name. periodt π
and the way she's β¨pickyβ¨ about the output? obsessed. she:
- converts characters in the encoding-name to lowercase (because we do not do shouty uppercase around here, she's giving lowercase only π )
- strips characters which are not allowed in an encoding-name β if it doesn't belong, it's not coming through, sorry bestie π
so what you get out is a clean, lowercase, legal encoding name. chef's kiss. π
β EXIT STATUS β
0β success!! she did it!! slay!! π>0β an error occurred π something went sideways and she's telling you about it.
fr fr, if you get anything above zero, something's up. go check your input π«Ά
π EXAMPLES π
wanna grab the text-encoding from an Atom feed? say less bestie:
curl -s -L 'https://codemadness.org/atom.xml' | sfeed_xmlenc
curl pipes the feed straight into her, and she hands back the encoding. iconic pipeline behaviour. no notes. π
π¦ SEE ALSO π¦
go read those too, iykyk πβ¨
π AUTHORS π
Hiltjo Posthuma <hiltjo@codemadness.org> β the legend, the moment, the icon π
and that's the whole page, bestie!! this one came from the Debian build, dated July 25, 2021 β a vintage classic, lowkey timeless, she ate and left no crumbs πβ¨π
π¦ where this page comes from
- alpine 3.24: sfeed-doc 2.4-r0 Β· ISC
- debian bookworm: sfeed 1.7-1 Β· ISC
- debian trixie: sfeed 2.2-1 Β· ISC
- nixos 26.05: sfeed 2.4
- nixpkgs unstable: sfeed 2.4
- ubuntu noble: sfeed 2.0-1 Β· ISC
- ubuntu questing: sfeed 2.2-1
- ubuntu resolute: sfeed 2.3-1 Β· ISC
- ubuntu stonking: sfeed 2.3-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms