parses groups of groups
This commit is contained in:
parent
3bfd530fda
commit
ec0535a255
|
@ -73,9 +73,10 @@ __ll_group_list () {
|
||||||
local -a group_list
|
local -a group_list
|
||||||
group_list=$(command \
|
group_list=$(command \
|
||||||
cat ${HOST_FILE} \
|
cat ${HOST_FILE} \
|
||||||
| awk '$1 ~ /^\[.*\]$/ && !/[:=]/ { gsub(/[\[\]]/, "", $1); print $1 }' \
|
| awk '$1 ~ /^\[.*\]$/ && !/=/ && !/:vars/ \
|
||||||
|
{ gsub(/[\[\]]/, "", $1); gsub(/:children/, "", $1) ; print $1 }' \
|
||||||
| uniq )
|
| uniq )
|
||||||
|
|
||||||
echo ${group_list}
|
echo ${group_list}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,9 +72,10 @@ __ll_group_list () {
|
||||||
local -a group_list
|
local -a group_list
|
||||||
group_list=$(command \
|
group_list=$(command \
|
||||||
cat ${HOST_FILE} \
|
cat ${HOST_FILE} \
|
||||||
| awk '$1 ~ /^\[.*\]$/ && !/[:=]/ { gsub(/[\[\]]/, "", $1); print $1 }' \
|
| awk '$1 ~ /^\[.*\]$/ && !/=/ && !/:vars/ \
|
||||||
|
{ gsub(/[\[\]]/, "", $1); gsub(/:children/, "", $1) ; print $1 }' \
|
||||||
| uniq )
|
| uniq )
|
||||||
|
|
||||||
echo ${group_list}
|
echo ${group_list}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue