sed -e '/^Lines:/d' $inhdrs # emit the headers, minus any previous Lines: header # generate Lines: header lines="` ( case "$firstline" in '') sed 1d $inbody ;; # omit 1st blank line *) cat $inbody ;; esac if test -r $HOME/.signature; then echo '-- ' sed 4q $HOME/.signature fi) | wc -l `" echo Lines: $lines case "$firstline" in '') ;; *) echo '' ;; # insert blank line if missing esac cat $inbody # emit the article body