ansi2txt(1)

✨ ansi2txt(1) β€” General Commands Manual πŸŽ€

πŸ’– NAME

okay bestie, this one is SO simple πŸ’… ansi2txt is an ansi to plain text converter. that's literally the whole vibe 🌸

🧚 SYNOPSIS

ansi2txt < log > outfile

πŸ¦‹ DESCRIPTION

okay so ansi2txt is the queen of cleaning up messy text πŸ‘‘ it's built for text that's full of ANSI color codes, like MUD logs, stuff run through syntax highlighters, colorgcc, colordiff, ccze, loco, etc 🌈 and it turns all of that into plain ASCII text ✨

it works as a filter 🫢 it reads from stdin, strips out every single ANSI code, and sends the clean result to stdout. no cap, it's giving main character energy πŸ’œ

πŸ”₯ CAVEATS

bestie, listen up 😭 all ANSI codes get ignored, and that includes all the cursor positioning ones too πŸ’€ sometimes that's exactly what you want, and sometimes it really, really isn't πŸ™ˆ

πŸŽ€ SEE ALSO

obsessed with these too 😍 ansi2html(1), ttyrec2ansi(1), pipetty(1).


okay that's the whole page, iconic πŸ’… this sign-off is from the General Commands Manual page for ansi2txt(1), dated 2002-09-02 πŸ“ stay hydrated and keep your logs clean, bestie 🌸🫢