[ale] shell scripting

Wandered Inn esoteric at denali.atlnet.com
Thu Nov 16 05:37:25 EST 2000


Ken Nagorski wrote:
> 
> Sure,
>         grep prints it if you find it. I wanted the ones grep didn't
> find. That is why I was using the echo, if you don't find a match let me
> know.

Like I said, I must have been tired.  Try this:

for rec in $(<domains); do

	grep $rec shared-ips  || echo $rec

done

> 
> Thanks
> Ken

--
Until later: Geoffrey		esoteric at denali.atlnet.com

"Great spirits have always found violent opposition from mediocre minds.
The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his
intelligence."
- Albert Einstein
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list