#!/bin/bash # pass systemd sysusers config files a as argument to this script. echo '#!/bin/bash' echo 'cat <<"EOF" |' grep -he '^[ugmr]' "$@" echo 'EOF' echo '/usr/sbin/sysusers2shadow || [[ -f /.buildenv ]]'