automate/debconf-example_get-selecti...

7 lines
199 B
Bash

apt-get install debconf-utils
# replace <TAB> with tabulator key
for i in $(debconf-show ${PACKAGE} | grep "*" | cut -d" " -f2 | cut -d":" -f1); do
debconf-get-selections | egrep "$i<TAB>";
done