[ale] shell scripting

Ken Nagorski kenn at pcintelligent.com
Wed Nov 15 19:30:02 EST 2000


Hi,

	Anyone know how to say if this is in this file don't do anything
else print it our? Does that make sense? I know I have done this before
with a shell script but I can't get it to work now. Here is the script
it is not working however...
	i am trying to use the exit status but that doesn't seem to be
right.

Thank you
Ken
-----------snip------------------------------

#!/bin/bash

for d in `less domains`
do
 `grep $d shared-ips`
 if [ $?==127 ]
  then
   echo "$d"
 fi
done
A

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list