command form this time was git ls-files '*.jsp' | while read f; do tail -n1 $f | read -r _ || echo >> $f; done