BOMSTRIP(1)
π BOMSTRIP π
okay bestie, gather round, because today we're talking about bomstrip and bomstrip-files β the little duo that yeets the BOM sequence out of your UTF-8 files. no cap. β¨
πΈ NAME πΈ
bomstrip, bomstrip-files β strip the BOM sequence from UTF-8 files π§
π SYNOPSIS π
bomstrip
bomstrip-files file ...
π DESCRIPTION π
So here's the tea. β
The bomstrip utility reads UTF-8 data from its standard input and copies it to its standard output, and along the way it strips the BOM (byte-order mark) from the beginning of the text if it's present. that's it. that's the whole job. and honestly? iconic.
there are no command-line options and no parameters. none. zero. she's a minimalist, she's booked and busy, she doesn't need your flags. π«Ά
The bomstrip-files utility removes the UTF-8 BOM from the specified files, and it saves each file's original contents with a .bom extension β so your og files stay safe, no stress. π
She does this by using the bomstrip utility, trying to execute it as bomstrip. but hmm, what if bomstrip is installed under another name? or what if you want a more complex command? π³ then you can just supply it in the BOMSTRIP environment variable. flexible queen behavior. π
π EXAMPLES π
β¨ Strip the BOM, if present, from a text file:
bomstrip < bom.txt > nobom.txt
β¨ Strip the BOM, if present, from all text files, backing them up with a .bom extension:
bomstrip-files *.txt
β¨ Use the OCAML implementation of bomstrip:
env BOMSTRIP='ocaml bomstrip.ocaml' bomstrip-files *.txt
π¦ SEE ALSO π¦
The bomstrip home page: https://www.ueber.net/who/mjl/projects/bomstrip/
π HISTORY π
okay so this one has LORE. π
The bomstrip utility (in many languages, no less β she's multilingual) was written by Mechiel Lukkien, with implementations in various languages sent to him by others, including Andreas Gohr, Andrew Gerrand, Berteun Damman, Matthijs Bomhoff, Peter Pentchev, and Ruben Smelik. a whole ensemble cast fr fr. π
The bomstrip-files utility and this manual page were written by Peter Pentchev in the hope that they reflect the behavior of all the bomstrip implementations in all languages. fingers crossed bestie, fingers crossed. π€
π«Ά AUTHORS π«Ά
- Mechiel Lukkien β¨
mechiel@ueber.netβ© - Peter Pentchev β¨
roam@ringlet.netβ©
and that's the whole page, babe. π if you were wondering who shipped this lil beauty β Debian, November 14, 2021 π β mwah, sending you BOM-free kisses, go forth and strip those bytes. πβ¨
π¦ where this page comes from
- debian bookworm: bomstrip 9-15+b1 Β· LicenseRef-public-domain
- debian trixie: bomstrip 9-17 Β· LicenseRef-public-domain
- ubuntu jammy: bomstrip 9-15 Β· LicenseRef-public-domain
- ubuntu noble: bomstrip 9-16 Β· LicenseRef-public-domain
- ubuntu questing: bomstrip 9-17
- ubuntu resolute: bomstrip 9-18 Β· LicenseRef-public-domain
- ubuntu stonking: bomstrip 9-19 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms