11.5.1. Conversion tools
- enscript
- figlet
Converts text files to postscript, rtf, HTML (use ghostview to view the postscript file). enscript has a large number of options which can be used to customise the output.
Examples:Prev
enscript --language=html input_file.txt -o output_file.html
This will take some file and output it as a html file.
enscript --help-highlight
Display help on using the highlight feature (list all different types of highlighting available)
enscript --help-highlight
Highlight (pretty print), example:
enscript -E --color --language=html --toc --output=foo.html *.h *.c
Add all the files with a .h and a .c (C source and header files) into a file called foo.html, use colour and add a table of contents
For further options refer to the well written manual page of enscript.
Used to create ASCII "art". Figlet can create several different forms (fonts) of ASCII art, its one of the more unusual programs around.
Notes
These examples are based off information from the enscript manual page, see [12] in the Prev for further information.
Prev
Home
Next
Text manipulation tools
Up
Finding Text Within Files
* License

