* Brian Clark ([EMAIL PROTECTED]) wrote:
> * Brian Clark ([EMAIL PROTECTED]) [Feb 01. 2002 00:33]:
> 
> > > $ cat dynacolor.sh
> > > #!/bin/sh
> > > awk '{printf("color index yellow default \"~f %s ~N\"\n", $1);}' <addrs.txt
> 
> By the way, if anyone else wants to do this and the lines in addrs.txt
> have spaces, use $0 rather than $1.
> 
> awk '{printf("color index yellow default \"~f \\\"%s\\\" ~N\"\n", $0);}' < addrs.txt
> 
> Thank, David. Neat trick.

Indeed. A variation of this would be to provide different colors for
different people. For example, feegee would be yellow, but heegee would
be red.

-- 
Carl B. Constantine             University of Victoria
Programmer Analyst              http://www.uvic.ca
UNIX System Administrator       Victoria, BC, Canada
[EMAIL PROTECTED]

Reply via email to