blob: 72af869131bd6111536136842a72cfbb9ec7f2c6 (
plain) (
tree)
|
|
#!/usr/bin/awk -f
# Manage the processing flag (starts set in each file)
FNR == 1 || /### sls/ { sls = 1 }
/### nosls/ { sls = 0 }
# If processing flag set, directive is "Host", and hostname has no wildcards,
# then print it
sls && $1 == "Host" && $2 !~ /\*/ { print $2 }
|