How to find blank lines in a set of files in GNU/Linux or UNIX-Like Operating Systems
This short script could help you find blank lines at the beginning or the end of a set of files (in this case in the same directory where you run this script). for f in `find . -type f`; do for t in head tail; do $t -1 $f |egrep ‘^[ ]*$’ >/dev/null && echo…