In, sed -i -e '1 s/sh/bash/' /var/lib/dpkg/info/unvanquished-common.config dpkg --configure -a there are two commands one that replaces the string 'sh' with 'bash' in '/var/lib/dpkg/info/unvanquished-common.config' and one that configures dpkg. So, just separate them with a semicolon. This should wo...