+src_pkg_name=$(dpkg-parsechangelog -l${DEBIAN}/changelog|grep Source|sed 's/^.*Source: //') perhaps with an anchor at the start of the line (and one less process): src_pkg_name=$(dpkg-parsechangelog -l${DEBIAN}/changelog | sed -n 's/^Source: //p') -- Loïc Minier