Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > System > Shells

    rad 0.1.2

    Download button

    No screenshots available
    Downloads: 184  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rob O'Dwyer | More programs
    MIT/X Consortium Lic... / FREE
    October 23rd, 2010, 21:04 GMT
    ROOT / System / Shells

     Read user reviews (0)  Refer to a friend  Subscribe

    rad description

    A super easy console highlighter. Text goes in, color comes out.

    rad is a super easy console highlighter. Text goes in, color comes out. rad can be used to process the output of commands, or to highlight single files.

    How it works

    rad will read the file given with --file/-f, or stdin if omitted.

    Highlighting is specified with re-usable colorer files. Colorer files are written in YAML. They contain a collection of rules like this:

    "regex":
     fore: green
     back: black
     style: normal


    or this:

    regex: {fore: red, back: white, style: bright}

    and are stored in ~/.rad/ by default. The simplest way to use rad is to give it the names of one or more colorers, like so:

    $ echo "this is a test" | rad colorer1 colorer2

    and all rules in the colorers ~/.rad/colorer1.yaml and ~/.rad/colorer2.yaml will be applied to the input text in order!

    rad can also make these files for you interactively, using the --new/-n option:

    $ rad -n
    Colorer name for this rule: logs
    Pattern to match: ERROR
    Foreground color [white]: red
    Background color [black]:
    Style [bright]:


    $ tail -f log.txt | rad logs

    Colorer files will be appended to, so you can quickly build a colorer with a bunch of rules by running this a few times.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    console highlighter | shell highlighter | console | highlighter | text



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM