[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] shell scripting



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.