4 ms·
I wrote an awk script to rip through supposedly ascii text files to deal with CP1252 extended ascii characters that would creep in. Those characters played havo
by wombatpm 4y ago
I wrote an awk script to rip through supposedly ascii text files to deal with CP1252 extended ascii characters that would creep in. Those characters played havoc with the output of our bindery’s commercial inkjet print heads. That stuff was fast on ancient equipment
- every 4y agoI do something similar to convert supposed plain text to 7-bit US-ASCII. I use a sed script however...
- DamonHD 4y agoDon't shoot me, but I've used ask to create binary MIDI and WAV files...
- DamonHD 4y agoHmmm aWk!
- sargstuff 4y agoWhen appropriate, don't pass up opportunities to ingest Gawk [1]! edit: especially since unicode support allows for use of native Klingon fonts. [1] https://www.startrek.com/database_article/gagh https://www.startrek.com/database_article/gagh
- deleted 4y ago[deleted]
- sargstuff 4y agoOk, even though hasn't been ported as an awk extension under gawk, will POKE [1][2] with command line pipe do (perhaps with enough sed, too)? [1] : https://www.gnu.org/software/poke/ https://www.gnu.org/software/poke/ [2] : https://kernel-recipes.org/en/2019/talks/gnu-poke-an-extensible-editor-for-structured-binary-data/ https://kernel-recipes.org/en/2019/talks/gnu-poke-an-extensi...
- sargstuff 4y agoawk system() makes possible to avoid being BASH'ed.