sansi man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

sansi(1)		       General Commands			      sansi(1)

NAME
       sansi  --  StripANSI;  strip ANSI escape sequences/characters from text
       files

SYNTAX
       sansi < ANSIfied_textfile > unANSIfied_textfile

	      Strips ANSI from ANSIfied_textfile. Where	 ANSIfied_textfile  is
	      the   name   of	the  textfile  containing  ANSI,  and  unANSI‐
	      fied_textfile is a filehandle  you've  chosen  for  it's	output
	      (sansi redirects the filtered output to the filename you've cho‐
	      sen).

DESCRIPTION
       sansi was written to strip the ANSI control sequences in files, or out‐
       put, often, but not limited to those generated by compilers. I found it
       difficult to visually grope/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 impossi‐
       ble  to	read  it  inline in your favorite pager, or text editor; Enter
       sansi.

       ACKNOWLEDGEMENTS
	      John Marino
	      It probably would have never occurred to	me  to	release	 this,
	      except  that  I thought it might help him, and the other commit‐
	      ters. I hoped it might help him after  all  the  [unintentional]
	      grief I've caused him. Thanks for your patience, John!

OPTIONS
       <ANSIfied_textfile> <Input file>
	      File name with embedded ANSI sequences

       <unANSIfied_textfile> <Output file>
	      File name Stripped of ANSI sequences.

FILES
       /usr/local/sbin/sansi

ENVIRONMENT VARIABLES
       None at this time.

EXAMPLES
       To  strip  the  ANSI  sequences	from  the  file MakeOutput, saving the
       results to CleanOutput:

       sansi <MakeOutput> CleanOutput

BUGS
       Doubtful. But who knows?

AUTHORS
       Chris Hutchinson <portmaster AT bsdforge.com>

COPYRIGHT
       Copyright 2014, Chris Hutchinson, 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 ALSO

SEE ALSO
       The sansi command first appeared in 2014, when it was  determined  that
       Eye Candy isn't always sweet.

portmaster			     1.0.1			      sansi(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net