Using awk seems to be more clear and is independent of whitespace type:
DNSMASQ_OPTS="$DNSMASQ_OPTS `mawk -- '{ printf "
--trust-anchor=.,%d,%d,%d,%s", $5, $6, $7, $8 }' $ROOT_DS`"
However, using [[:space:]] also works, but looks ugly:
"`sed -e 's/.*IN[[:space:]]DS[[:space:]]/--trust-anchor=.
Package: dnsmasq
Version: 2.76-5
Severity: important
Dear Maintainer,
dnsmasq fails to start if dns-root-data is installed.
The failure is because the creation of command line parameters from the
ROOT_DS file in /etc/init.d/dnsmasq at the following lines.
113 if [ -f $ROOT_DS ]; then
114DNS
2 matches
Mail list logo