Ok, I wanted to search the archives, but I couldn't find a search
tool.  So perhaps that is my first question, how do I do this.

Next, I have two general questions on colormaps and shell programming.

----------------
First: Colormaps:
Could someone give me a basic explanation of how the colormap works.  When
I am at home running linux I have not had to worry about this.  But, up at
school, we are running some version of unix and I have color problems in
X.  Expecially when I run netscape, but I can't even get emacs to
recognize some colors (like orchid or palegoldenrod), I get the error:

Warning: Cannot allocate colormap entry for "palegoldenrod"

Also, this happened when I started running fvwm2 at school.  I didn't have
this problem when I was running twm.

thanks for any explanation

--------------
Next, shell programming:
I am just starting to learn a few things about shell programming.  I have
been using bash, but I suppose the are all mostly similar.  Anyhow, I want
to identify substrings in variable and files.  I have used grep to some
success.  for example I have this code to find rpm files containg a given
file name:

if rpm -qpl $FILE | grep $FINDNAME > /dev/null

But, if I have two variables, say VAR1 and VAR2, how can I check and see
if $VAR1 contains a substring of $VAR2 ?
I thought that the following would work:
if [ regexp $VAR2 $VAR1 ] 
but bash complains that it doesn't recognize regexp.

I'm sure its easy, any ideas?

---------

Thanks in advance,

Blake
(RH 6.2)



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to