On 2 May 2013 16:30, Paolo Bonzini <pbonz...@redhat.com> wrote: > /me changes his scripts... > > -s/PATCH/PULL/ if (/PATCH 0+\\//); > +s/PATCH/PULL/ if (/^Subject:/); > > Yes, Perl...
Heh, I use sed for this bit: sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1] '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER" (I really must put my random scripts into git.) -- PMM