Linux

  1. Home
  2. Computing & Technology
  3. Linux

GNU/Linux Command-Line Tools Summary

From Authors, for About.com

11.5.1. Conversion tools

  • enscript
  •    

    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.


  • figlet
  •    

    Used to create ASCII "art". Figlet can create several different forms (fonts) of ASCII art, its one of the more unusual programs around.


Notes


   Prev    

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

* GNU/Linux Command-Line Tools Summary Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Documentation
  5. Linux Tools Summary
  6. GNU/Linux Command-Line Tools Summary - Text Conversion/Filter Tools

©2009 About.com, a part of The New York Times Company.

All rights reserved.