perl -pi.bak -0 -e 's/(.*)/prepend\n$1append\n/s' *.html