![]() |
![]()
| ![]() |
![]()
NAMEsansi -- StripANSI; strip ANSI escape sequences/characters from text files SYNTAXsansi < ANSIfied_textfile > unANSIfied_textfile
DESCRIPTIONsansi was written to strip the ANSI control sequences in files, or output, often, but not limited to those generated by compilers. I found it difficult to visually grok/grep the output of script(1) sessions. Especially with the advent of clang. While it's nice to replay the script(1) sessions to view the highlighted messages. It's near impossible to read it inline in your favorite pager, or text editor; Enter sansi.
OPTIONS
FILES/usr/local/sbin/sansi ENVIRONMENT VARIABLESNone at this time. EXAMPLESTo strip the ANSI sequences from the file MakeOutput, saving the results to CleanOutput: sansi <MakeOutput> CleanOutput BUGSDoubtful. But who knows? AUTHORSChris Hutchinson <portmaster AT bsdforge.com> COPYRIGHTCopyright 2014-2017, Chris Hutchinson, aka taint, portmaster This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself, or under the BSD2CLAUSE license, at your choice. SEE ALSOSEE ALSOThe sansi command first appeared in 2014, when it was determined that Eye Candy isn't always sweet.
|