On Mon, May 5, 2008 at 8:25 AM, Parvinder Bhasin
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I was wondering if there was to get some colors inside the regular terminal
> (not Xterm or Xorg).
>  I know if I alias colorls it sort of works for just listing directories and
> files but I would like to customize the look of the entire terminal for
> example :
>
>  lets say I type in "ifconfig " , I would like to change the colors on the
> ip addresses and the interface names.
>  Any pointers would come in handy.  Thanks in advance.

i don't know of any nice ways :/

/sbin/ifconfig | sed "s/^[a-z]*[0-9]/`tput setaf 1`&`tput setaf 0`/"

this colors the interface names in red, if you want more complicated
things there are good chances you will be better with awk than sed :-)



-- 
For far too long, power has been concentrated in the hands of "root"
and his "wheel" oligarchy. We have instituted a dictatorship of the
users. All system administration functions will be handled by the
People's Committee for Democratically Organizing the System (PC-DOS).

Reply via email to