Just thought I would pass this along. This is originally by Elthek on #perl (unless he got it from somewhere else :)..
Of course, you can put anything before the pipe to perl.
ls --help | perl -pe '$i=$.;s//\e[3@{[$i++%7+1]};1m/g'

Replies are listed 'Best First'.
Re: Rainbow output
by TheoPetersen (Priest) on Apr 19, 2001 at 19:50 UTC
    And if that left your terminal printing in lime green :)

    ls | perl -pe'$i=$.;s//\e[3@{[$i++%7+1]};1m/g;END{print "\033[0m"}'