#!/bin/sh set -e stem=$1 echo '# autogenerated' while read dgram args; do cat <\$@.new chmod +x \$@.new && mv -f \$@.new \$@ END done