[ale] shell scripting

Yu, Jerry zyu at Ptek.com
Wed Nov 15 19:28:12 EST 2000


grep "$d" shared-ips > /dev/null 2>&1  && echo "$d"

would be more concise.

treat it as a string:	[ "$?" = "127" ]
treat it as a number:	[ "$?" eq 127 ]


#-----------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.
#

Jerry Z. Yu				mailto: z.yu at ptek.com
Systems Engineer			https://punch
PTEK Holdings, Inc.			+1-404-262-8544 (O)

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





More information about the Ale mailing list