perl -pi -e 'BEGIN{<>}' files you want to munge