SUSE Linux iTOps Tube

Wednesday, May 16, 2012

_= underbar equalsign in bash -

in line 5 there is this structure _=



I have never seen it before - do not know what it does




Code:


1 instances=`grep 'stuff' $commands | sed -r 's/#.*//g' | awk '{print $3}'`

2        [[ -z $instances ]] && log "does not have any instances"

3        instances_ok=true

4        for instance in $instances; do

5                _=$(echo "$list" | grep "^/$instance/")

6                if [[ $? -ne 0 ]]; then

7                        ok=false; instances_ok=false; failed+=($host)

8                        log "$host could NOT find '$instance'"

9                fi













No comments:

Post a Comment