> parm_1="invalid" > target_system="hadley" > space=" " > delim=" | " > raw_list=$(/bin/ls /clamscan/servers) > cooked_list=$(echo $raw_list | sed -e "s:$space:$delim:g") > echo "Raw list = "$raw_list echo "cooked list = "$cooked_list > case $target_system in > $cooked_list ) parm_1="valid" ;; > esac
My $0.028 -- parm_1="invalid" for system in `/bin/ls /clamscan/servers` ; do [ "x$system" = "x$target_system" ] && parm_1="valid" done ok r. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390